Passed
Push — GENERAL_BUG_REVIEW_240911 ( 6dbc7d...fb375d )
by Rafael
53:50
created
template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         return $texte;
207 207
     }
208 208
 
209
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
209
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
210 210
     /**
211 211
      *  Function to build a document on disk using the generic odt module.
212 212
      *
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
222 222
     {
223
-		// phpcs:enable
223
+        // phpcs:enable
224 224
         global $user, $langs, $conf, $mysoc, $hookmanager;
225 225
         global $action;
226 226
 
Please login to merge, or discard this patch.
template/core/modules/mailings/mailing_mymodule_selector1.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
 
93
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
93
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
94 94
     /**
95 95
      *  This is the main function that returns the array of emails
96 96
      *
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function add_to_target($mailing_id)
101 101
     {
102
-		// phpcs:enable
102
+        // phpcs:enable
103 103
         $target = array();
104 104
         $j = 0;
105 105
 
Please login to merge, or discard this patch.
public/htdocs/modulebuilder/template/class/api_mymodule.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 
343 343
 
344 344
 
345
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
345
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
346 346
     /**
347 347
      * Clean sensible object datas
348 348
      *
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
      */
352 352
     protected function _cleanObjectDatas($object)
353 353
     {
354
-		// phpcs:enable
354
+        // phpcs:enable
355 355
         $object = parent::_cleanObjectDatas($object);
356 356
 
357 357
         unset($object->rowid);
Please login to merge, or discard this patch.
public/htdocs/modulebuilder/template/class/myobject.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
         return $this->LibStatut($this->status, $mode);
980 980
     }
981 981
 
982
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
982
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
983 983
     /**
984 984
      *  Return the label of a given status
985 985
      *
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
      */
990 990
     public function LibStatut($status, $mode = 0)
991 991
     {
992
-		// phpcs:enable
992
+        // phpcs:enable
993 993
         if (is_null($status)) {
994 994
             return '';
995 995
         }
Please login to merge, or discard this patch.
public/htdocs/ticket/card.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,9 @@  discard block
 block discarded – undo
192 192
 
193 193
     if (($action == 'add' || ($action == 'update' && $object->status < Ticket::STATUS_CLOSED)) && $permissiontoadd) {
194 194
         $ifErrorAction = $action == 'add' ? 'create' : 'edit';
195
-        if ($action == 'add') $object->track_id = null;
195
+        if ($action == 'add') {
196
+            $object->track_id = null;
197
+        }
196 198
         $error = 0;
197 199
 
198 200
         $fieldsToCheck = [
@@ -344,7 +346,9 @@  discard block
 block discarded – undo
344 346
                 $db->rollback();
345 347
                 setEventMessages($object->error, $object->errors, 'errors');
346 348
             }
347
-        } else $action = $ifErrorAction;
349
+        } else {
350
+            $action = $ifErrorAction;
351
+        }
348 352
     }
349 353
 
350 354
     // Mark as Read
Please login to merge, or discard this patch.
public/htdocs/public/webportal/logout.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@
 block discarded – undo
49 49
 }
50 50
 
51 51
 // Not sure this is required
52
-if (isset($_SESSION['webportal_logged_thirdparty_account_id'])) unset($_SESSION['webportal_logged_thirdparty_account_id']);
52
+if (isset($_SESSION['webportal_logged_thirdparty_account_id'])) {
53
+    unset($_SESSION['webportal_logged_thirdparty_account_id']);
54
+}
53 55
 
54 56
 if (GETPOST('noredirect')) {
55 57
     return;
Please login to merge, or discard this patch.
public/htdocs/reception/card.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -966,7 +966,7 @@
 block discarded – undo
966 966
             /**
967 967
              * @var array $suffix2numAsked map HTTP query parameter suffixes (like '1_0') to line indices so that
968 968
              *                             extrafields from HTTP query can be assigned to the correct dispatch line
969
-            */
969
+             */
970 970
             $suffix2numAsked = array();
971 971
             $dispatchLines = array();
972 972
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/pdf_octopus.modules.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3558,7 +3558,9 @@  discard block
 block discarded – undo
3558 3558
             $deja_regle = $invoice->getSommePaiement();
3559 3559
 
3560 3560
             $resteapayer = price2num($invoice->total_ttc - $deja_regle - $total_ttc_rg - $creditnoteamount - $depositsamount, 'MT');
3561
-            if ($invoice->paye) $resteapayer = 0;
3561
+            if ($invoice->paye) {
3562
+                $resteapayer = 0;
3563
+            }
3562 3564
 
3563 3565
             $y = 0;
3564 3566
 
@@ -3608,7 +3610,9 @@  discard block
 block discarded – undo
3608 3610
 
3609 3611
             if ($deja_regle > 0) {
3610 3612
                 $title = $outputlangs->transnoentities("PaymentsAlreadyDone");
3611
-                if ($invoice->type == 2) $title = $outputlangs->transnoentities("PaymentsBackAlreadyDone");
3613
+                if ($invoice->type == 2) {
3614
+                    $title = $outputlangs->transnoentities("PaymentsBackAlreadyDone");
3615
+                }
3612 3616
 
3613 3617
                 $pdf->SetFont('', '', $default_font_size - 3);
3614 3618
                 $pdf->SetXY($posx, $posy + $height * $index);
@@ -3671,7 +3675,9 @@  discard block
 block discarded – undo
3671 3675
                 if (!empty($this->tplidx)) {
3672 3676
                     $pdf->useTemplate($this->tplidx);
3673 3677
                 }
3674
-                if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) $this->_pagehead($pdf, $object, 0, $outputlangs);
3678
+                if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) {
3679
+                    $this->_pagehead($pdf, $object, 0, $outputlangs);
3680
+                }
3675 3681
                 $pdf->setPage($pageposafter + 1);
3676 3682
                 $pdf->setPageOrientation('', 1, 0); // The only function to edit the bottom margin of current page to set it.
3677 3683
 
Please login to merge, or discard this patch.
modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     }
177 177
 
178 178
 
179
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
179
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
180 180
     /**
181 181
      *  Function to build pdf onto disk
182 182
      *
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
192 192
     {
193
-		// phpcs:enable
193
+        // phpcs:enable
194 194
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
195 195
         global $action;
196 196
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
         }
644 644
     }
645 645
 
646
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
646
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
647 647
     /**
648 648
      *  Return list of active generation modules
649 649
      *
@@ -653,11 +653,11 @@  discard block
 block discarded – undo
653 653
      */
654 654
     public static function liste_modeles($db, $maxfilenamelength = 0)
655 655
     {
656
-		// phpcs:enable
656
+        // phpcs:enable
657 657
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
658 658
     }
659 659
 
660
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
660
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
661 661
     /**
662 662
      *   Show table for lines
663 663
      *
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
         }
710 710
     }
711 711
 
712
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
712
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
713 713
     /**
714 714
      *  Show top header of page.
715 715
      *
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
         return $top_shift;
952 952
     }
953 953
 
954
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
954
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
955 955
     /**
956 956
      * Show footer of page. Need this->emetteur object
957 957
      *
Please login to merge, or discard this patch.