Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
20f46adbc4
commit
9596d88b48
@@ -4,13 +4,10 @@ namespace App\Services\ImportExport;
|
||||
|
||||
use App\Interfaces\ImportExport;
|
||||
use App\Models\Aircraft;
|
||||
use App\Models\Enums\AircraftStatus;
|
||||
use App\Models\Flight;
|
||||
|
||||
/**
|
||||
* The flight importer can be imported or export. Operates on rows
|
||||
*
|
||||
* @package App\Services\Import
|
||||
*/
|
||||
class AircraftExporter extends ImportExport
|
||||
{
|
||||
@@ -26,17 +23,19 @@ class AircraftExporter extends ImportExport
|
||||
|
||||
/**
|
||||
* Import a flight, parse out the different rows
|
||||
*
|
||||
* @param Aircraft $aircraft
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function export($aircraft): array
|
||||
{
|
||||
$ret = [];
|
||||
foreach(self::$columns as $column) {
|
||||
foreach (self::$columns as $column) {
|
||||
$ret[$column] = $aircraft->{$column};
|
||||
}
|
||||
|
||||
# Modify special fields
|
||||
// Modify special fields
|
||||
$ret['subfleet'] = $aircraft->subfleet->type;
|
||||
|
||||
return $ret;
|
||||
|
||||
Reference in New Issue
Block a user