@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | ) |
| 45 | 45 | { |
| 46 | 46 | Assert::integerish($pilotId); |
| 47 | - $pilotId = (int)$pilotId; |
|
| 47 | + $pilotId = (int) $pilotId; |
|
| 48 | 48 | |
| 49 | 49 | if (!isset($this->items[$pilotId])) { |
| 50 | 50 | $this->items[$pilotId] = new PilotMissions($pilotId, $pilotFirstname, $pilotLastname); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | public function addPilot($pilotId, $pilotFirstname, $pilotLastname) |
| 62 | 62 | { |
| 63 | 63 | Assert::integerish($pilotId); |
| 64 | - $pilotId = (int)$pilotId; |
|
| 64 | + $pilotId = (int) $pilotId; |
|
| 65 | 65 | |
| 66 | 66 | if (isset($this->items[$pilotId])) { |
| 67 | 67 | return; |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | $pilotLastname = $obj->lastname; |
| 53 | 53 | $pilotFirstname = $obj->firstname; |
| 54 | 54 | |
| 55 | - if($query->isPilotsOnly()){ |
|
| 55 | + if ($query->isPilotsOnly()) { |
|
| 56 | 56 | $result->addPilot($pilotId, $pilotFirstname, $pilotLastname); |
| 57 | - }else{ |
|
| 57 | + } else { |
|
| 58 | 58 | $result->addMission($obj->quartil, $pilotId, $pilotFirstname, $pilotLastname, |
| 59 | 59 | $obj->number_flights, $obj->total_kilometers); |
| 60 | 60 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $sql .= " , SUM(VOL.kilometers) as total_kilometers "; |
| 80 | 80 | $sql .= " , COUNT(VOL.idBBC_vols) as number_flights"; |
| 81 | 81 | |
| 82 | - if(!$query->isPilotsOnly()){ |
|
| 82 | + if (!$query->isPilotsOnly()) { |
|
| 83 | 83 | $sql .= " , QUARTER(VOL.date) as quartil "; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | if($query->isPilotsOnly()){ |
| 56 | 56 | $result->addPilot($pilotId, $pilotFirstname, $pilotLastname); |
| 57 | - }else{ |
|
| 57 | + } else{ |
|
| 58 | 58 | $result->addMission($obj->quartil, $pilotId, $pilotFirstname, $pilotLastname, |
| 59 | 59 | $obj->number_flights, $obj->total_kilometers); |
| 60 | 60 | } |