Completed
Push — master ( f14102...3c5c0f )
by Laurent
01:43
created
readFlights.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 print '<td>' . $totalT3 . '</td>';
267 267
 print '<td></td>';
268 268
 
269
-print '<td>' . $totalT4. '</td>';
269
+print '<td>' . $totalT4 . '</td>';
270 270
 print '<td></td>';
271 271
 
272 272
 print '<td>' . $totalT5 . '</td>';
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 //table km
293 293
 $tauxRemb = isset($conf->global->BBC_FLIGHT_LOG_TAUX_REMB_KM) ? $conf->global->BBC_FLIGHT_LOG_TAUX_REMB_KM : 0;
294 294
 $year = GETPOST("year", 'int');
295
-if(empty($year)){
295
+if (empty($year)) {
296 296
     $year = date('Y');
297 297
 }
298 298
 
Please login to merge, or discard this patch.
lib/flightLog.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 }
109 109
 
110 110
 /**
111
- * @param null $year
111
+ * @param integer $year
112 112
  * @param null $pilotId
113 113
  * @param null $quarter
114 114
  * @param bool $groupBy
Please login to merge, or discard this patch.
command/CreateFlightBillCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             throw new \InvalidArgumentException('Model document is missing');
92 92
         }
93 93
 
94
-        if(!isset($nbrPax) || !is_numeric($nbrPax) || $nbrPax != (int) $nbrPax){
94
+        if (!isset($nbrPax) || !is_numeric($nbrPax) || $nbrPax != (int) $nbrPax) {
95 95
             throw new \InvalidArgumentException('The number of pax is not correct, an integer is expected');
96 96
         }
97 97
 
Please login to merge, or discard this patch.
command/CreateFlightBillCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     {
113 113
         $customer = new Client($this->db);
114 114
 
115
-        if($flight->fk_receiver) {
115
+        if ($flight->fk_receiver) {
116 116
             return $this->fetchCustomerFromFlight($flight);
117 117
         }
118 118
 
Please login to merge, or discard this patch.
facture.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,11 +124,11 @@
 block discarded – undo
124 124
  * Put here all code to do according to value of "action" parameter
125 125
  */
126 126
 if ($action == EXPENSE_REPORT_GENERATOR_ACTION_GENERATE) {
127
-    try{
128
-        $command = new CreateFlightBillCommand($flight->getId(), $modeReglement, $conditionReglement, $documentModel, $type, $publicNote, $privateNote,$bankAccount, $nbrPax);
127
+    try {
128
+        $command = new CreateFlightBillCommand($flight->getId(), $modeReglement, $conditionReglement, $documentModel, $type, $publicNote, $privateNote, $bankAccount, $nbrPax);
129 129
         $handler->handle($command);
130
-    }catch (\Exception $e){
131
-        dol_syslog($e->getMessage(),LOG_ERR);
130
+    } catch (\Exception $e) {
131
+        dol_syslog($e->getMessage(), LOG_ERR);
132 132
         dol_htmloutput_mesg("Facture non créée", '', 'error');
133 133
     }
134 134
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     try{
128 128
         $command = new CreateFlightBillCommand($flight->getId(), $modeReglement, $conditionReglement, $documentModel, $type, $publicNote, $privateNote,$bankAccount, $nbrPax);
129 129
         $handler->handle($command);
130
-    }catch (\Exception $e){
130
+    } catch (\Exception $e){
131 131
         dol_syslog($e->getMessage(),LOG_ERR);
132 132
         dol_htmloutput_mesg("Facture non créée", '', 'error');
133 133
     }
@@ -268,9 +268,12 @@  discard block
 block discarded – undo
268 268
 
269 269
         <?php if (!$flightProduct || !$flight->hasReceiver()) : ?>
270 270
             <a class="butActionRefused" href="#">Générer</a>
271
-        <?php else: ?>
271
+        <?php else {
272
+    : ?>
272 273
             <button class="butAction" type="submit">Générer</button>
273
-        <?php endif; ?>
274
+        <?php endif;
275
+}
276
+?>
274 277
 
275 278
         <a class="butAction" href="<?php echo DOL_URL_ROOT . '/flightlog/card.php?id=' . $flight->id; ?>">Retour au
276 279
             vol</a>
Please login to merge, or discard this patch.