@@ -153,10 +153,10 @@ discard block |
||
153 | 153 | $tableQueryHandler = new BillableFlightQueryHandler($db, $conf->global); |
154 | 154 | $pilotQueryRepository = new PilotQueryRepository($db); |
155 | 155 | |
156 | -function pilotStatus($id){ |
|
156 | +function pilotStatus($id) { |
|
157 | 157 | global $pilotQueryRepository; |
158 | 158 | $member = $pilotQueryRepository->byId($id); |
159 | - if($member === null){ |
|
159 | + if ($member === null) { |
|
160 | 160 | return ''; |
161 | 161 | } |
162 | 162 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | print '<td>' . $pilot->getCountForType('orga_T6')->getCount() . '</td>'; |
202 | 202 | print '<td>' . $pilot->getCountForType('orga_T6')->getCost()->getValue() . '</td>'; |
203 | 203 | |
204 | - print sprintf('<td class="%s">', $pilot->getFlightBonus()->getValue() === 0?'text-muted':'text-bold'). $pilot->getFlightBonus()->getValue() . ' pts</td>'; |
|
204 | + print sprintf('<td class="%s">', $pilot->getFlightBonus()->getValue() === 0 ? 'text-muted' : 'text-bold') . $pilot->getFlightBonus()->getValue() . ' pts</td>'; |
|
205 | 205 | |
206 | 206 | print '<td>' . $pilot->getCountForType('3')->getCount() . '</td>'; |
207 | 207 | print '<td>' . price($pilot->getCountForType('3')->getCost()->getValue()) . '€</td>'; |
@@ -220,8 +220,8 @@ discard block |
||
220 | 220 | print '<td>' . price($pilot->damageCost()->getValue()) . '€</td>'; |
221 | 221 | print '<td>' . price($pilot->invoicedDamageCost()->getValue()) . '€</td>'; |
222 | 222 | |
223 | - print sprintf('<td class="%s">', $pilot->getFlightsCost()->getValue() === 0?'text-muted':'text-bold'). price($pilot->getFlightsCost()->getValue()) . '€ </td>'; |
|
224 | - print sprintf('<td class="%s">', $pilot->isBillable(FlightBonus::zero())?'text-bold':'text-muted'). price($pilot->getTotalBill()->getValue()) . '€</td>'; |
|
223 | + print sprintf('<td class="%s">', $pilot->getFlightsCost()->getValue() === 0 ? 'text-muted' : 'text-bold') . price($pilot->getFlightsCost()->getValue()) . '€ </td>'; |
|
224 | + print sprintf('<td class="%s">', $pilot->isBillable(FlightBonus::zero()) ? 'text-bold' : 'text-muted') . price($pilot->getTotalBill()->getValue()) . '€</td>'; |
|
225 | 225 | print '</tr>'; |
226 | 226 | } |
227 | 227 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | print '<td>' . $totalT3 . '</td>'; |
247 | 247 | print '<td></td>'; |
248 | 248 | |
249 | -print '<td>' . $totalT4. '</td>'; |
|
249 | +print '<td>' . $totalT4 . '</td>'; |
|
250 | 250 | print '<td></td>'; |
251 | 251 | |
252 | 252 | print '<td>' . $totalT5 . '</td>'; |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | //table km |
276 | 276 | $tauxRemb = isset($conf->global->BBC_FLIGHT_LOG_TAUX_REMB_KM) ? $conf->global->BBC_FLIGHT_LOG_TAUX_REMB_KM : 0; |
277 | 277 | $year = GETPOST("year", 'int'); |
278 | -if(empty($year)){ |
|
278 | +if (empty($year)) { |
|
279 | 279 | $year = date('Y'); |
280 | 280 | } |
281 | 281 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $amount = $properties['amount']; |
82 | 82 | $id = $properties['id']; |
83 | 83 | $flightId = isset($properties['flight_id']) ? $properties['flight_id'] : null; |
84 | - $invoiced = (bool)$properties['invoiced']; |
|
84 | + $invoiced = (bool) $properties['invoiced']; |
|
85 | 85 | |
86 | 86 | return new self($authorId, $author, $amount, $id, $invoiced, $flightId, $label); |
87 | 87 | } |