Completed
Push — master ( 6f7763...5bdd2e )
by Laurent
04:58
created
command/CreateFlightBillCommandHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__.'/CreateFlightBillCommandHandler.php';
4
-require_once __DIR__.'/CreateFlightBillTransactionalCommandHandler.php';
3
+require_once __DIR__ . '/CreateFlightBillCommandHandler.php';
4
+require_once __DIR__ . '/CreateFlightBillTransactionalCommandHandler.php';
5 5
 
6 6
 /**
7 7
  * @author Laurent De Coninck <[email protected]>
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @return CreateFlightBillCommandHandler
13 13
      */
14
-    public static function factory($db, $conf, $user, $langs){
14
+    public static function factory($db, $conf, $user, $langs) {
15 15
         return new CreateFlightBillTransactionalCommandHandler($db, $conf, $user, $langs);
16 16
     }
17 17
 
Please login to merge, or discard this patch.
generateMonthlyBilling.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,9 +239,12 @@
 block discarded – undo
239 239
                     <?php echo $langs->trans('La periode demandée n\'est pas cloturée.') ?>
240 240
                 </p>
241 241
                 <a class="butActionRefused" href="#">Générer</a>
242
-            <?php else: ?>
242
+            <?php else {
243
+    : ?>
243 244
                 <button class="butAction" type="submit">Générer</button>
244
-            <?php endif; ?>
245
+            <?php endif;
246
+}
247
+?>
245 248
 
246 249
         </form>
247 250
     </section>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 if ($action == EXPENSE_REPORT_GENERATOR_ACTION_GENERATE) {
96 96
     try {
97 97
 
98
-        $command = new CreateMonthBillCommand( $type, $publicNote, $privateNote, $year, $month);
98
+        $command = new CreateMonthBillCommand($type, $publicNote, $privateNote, $year, $month);
99 99
         $handler->handle($command);
100 100
         dol_htmloutput_mesg('Génération : OK');
101 101
     } catch (Exception $e) {
Please login to merge, or discard this patch.
core/cron/BbcMonthlyFlightsBillCron.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         try {
55 55
 
56
-            if(date('d')>=15){
56
+            if (date('d') >= 15) {
57 57
                 dol_syslog('Monthly bill generation : date over');
58 58
                 return -2;
59 59
             }
Please login to merge, or discard this patch.
validators/FlightValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,21 +60,21 @@
 block discarded – undo
60 60
             $this->addError('nbrPax', 'Erreur le nombre de passager est un nombre négatif.');
61 61
         }
62 62
 
63
-        if($vol->mustHavePax()){
63
+        if ($vol->mustHavePax()) {
64 64
             if (!$vol->hasPax()) {
65 65
                 $this->addError('nbrPax', 'Erreur ce type de vol doit etre fait avec des passagers.');
66 66
             }
67 67
 
68
-            if(empty(trim($vol->getPassengerNames()))){
68
+            if (empty(trim($vol->getPassengerNames()))) {
69 69
                 $this->addError('passenger_names', 'Le nom des passagers est obligatoire.');
70 70
             }
71 71
 
72
-            if(empty(trim($vol->getPassengerNames()))){
72
+            if (empty(trim($vol->getPassengerNames()))) {
73 73
                 $this->addError('passenger_names', 'Le nom des passagers est obligatoire.');
74 74
             }
75 75
 
76 76
             $passengers = explode(';', $vol->getPassengerNames());
77
-            if(count($passengers) !== $vol->getNumberOfPassengers()){
77
+            if (count($passengers) !== $vol->getNumberOfPassengers()) {
78 78
                 $this->addError('passenger_names', 'Le nombre de noms des passagers doit être égale au nombre de passagers.');
79 79
             }
80 80
         }
Please login to merge, or discard this patch.
readFlights.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
 print '<td>' . $totalT3 . '</td>';
275 275
 print '<td></td>';
276 276
 
277
-print '<td>' . $totalT4. '</td>';
277
+print '<td>' . $totalT4 . '</td>';
278 278
 print '<td></td>';
279 279
 
280 280
 print '<td>' . $totalT5 . '</td>';
Please login to merge, or discard this patch.