Formatting

This commit is contained in:
Nabeel Shahzad 2019-07-23 08:43:40 -04:00
parent 62a10224a0
commit c5007f2928
4 changed files with 10 additions and 2 deletions

View File

@ -41,8 +41,8 @@ $factory->define(App\Models\Pirep::class, function (Faker $faker) {
'fuel_used' => function (array $pirep) {
return round($pirep['block_fuel'] * .9, 2); // 90% of the fuel loaded was used
},
'block_on_time' => Carbon::now('UTC'),
'block_off_time' => function (array $pirep) {
'block_on_time' => Carbon::now('UTC'),
'block_off_time' => function (array $pirep) {
return $pirep['block_on_time']->subMinutes($pirep['flight_time']);
},
'route' => $faker->text(200),

View File

@ -83,6 +83,8 @@ class Acars extends Model
/**
* Return a new Length unit so conversions can be made
*
* @param mixed $value
*
* @return int|Distance
*/
/*public function getDistanceAttribute()
@ -124,6 +126,8 @@ class Acars extends Model
/**
* Return a new Fuel unit so conversions can be made
*
* @param mixed $value
*
* @return int|Fuel
*/
/*public function getFuelAttribute()

View File

@ -135,6 +135,8 @@ class Flight extends Model
/**
* Return a new Distance unit so conversions can be made
*
* @param mixed $value
*
* @return Distance
*/
/*public function getDistanceAttribute()

View File

@ -201,6 +201,8 @@ class Pirep extends Model
/**
* Return a new Length unit so conversions can be made
*
* @param mixed $value
*
* @return int|Distance
*/
/*public function getDistanceAttribute()