add PIREP pre-file and ACARS updates; removing caching from ACARS/Pirep/User repositories; adjust PirepState enum values; add additional columns

This commit is contained in:
Nabeel Shahzad
2017-12-25 15:19:34 -06:00
parent 70b1476e93
commit 3bd97b4d37
41 changed files with 688 additions and 192 deletions

View File

@@ -103,11 +103,17 @@ class Utils extends Facade
/**
* @param $hours
* @param null $minutes
* @return float|int
*/
public static function hoursToMinutes($hours)
public static function hoursToMinutes($hours, $minutes=null)
{
return $hours * 60;
$total = (int) $hours * 60;
if($minutes) {
$total += (int) $minutes;
}
return $total;
}
/**