Formatting
This commit is contained in:
parent
62a10224a0
commit
c5007f2928
@ -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),
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user