From 71f5d33af7b1b5df6e28a3556b2804a699202b36 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 23 Jul 2019 09:42:31 -0400 Subject: [PATCH] Formatting in FlightExporter --- app/Services/ImportExport/FlightExporter.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Services/ImportExport/FlightExporter.php b/app/Services/ImportExport/FlightExporter.php index 0bb6ad29..847b6859 100644 --- a/app/Services/ImportExport/FlightExporter.php +++ b/app/Services/ImportExport/FlightExporter.php @@ -37,16 +37,14 @@ class FlightExporter extends ImportExport // Modify special fields $ret['airline'] = $ret['airline']->icao; - // $ret['distance'] = $ret['distance'][config('phpvms.internal_units.distance')]; - $ret['dpt_airport'] = $flight->dpt_airport_id; $ret['arr_airport'] = $flight->arr_airport_id; + if ($flight->alt_airport) { $ret['alt_airport'] = $flight->alt_airport_id; } $ret['days'] = $this->getDays($flight); - $ret['fares'] = $this->getFares($flight); $ret['fields'] = $this->getFields($flight); $ret['subfleets'] = $this->getSubfleets($flight);