Unit conversion fixes #193

This commit is contained in:
Nabeel Shahzad 2018-02-20 14:23:02 -06:00
parent aeacd80bcb
commit b9e88527dd

View File

@ -208,30 +208,6 @@ class Pirep extends BaseModel
}
}
/**
* @return Time
*/
/*public function getPlannedFlightTimeAttribute()
{
if (!array_key_exists('planned_flight_time', $this->attributes)) {
return null;
}
return new Time($this->attributes['planned_flight_time']);
}*/
/**
* @param $value
*/
/*public function setPlannedFlightTimeAttribute($value)
{
if ($value instanceof Time) {
$this->attributes['planned_flight_time'] = $value->getMinutes();
} else {
$this->attributes['planned_flight_time'] = $value;
}
}*/
/**
* Do some cleanup on the route
* @param $route