Passed
Push — MINOR_OPTIMIZATIONS_241106 ( 63568c )
by Rafael
57:48
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/mymodule/doc/pdf_standard_myobject.modules.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
 
152
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
152
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
153 153
     /**
154 154
      *  Function to build pdf onto disk
155 155
      *
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
165 165
     {
166
-		// phpcs:enable
166
+        // phpcs:enable
167 167
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
168 168
 
169 169
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
         }
825 825
     }
826 826
 
827
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
827
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
828 828
     /**
829 829
      *  Return list of active generation modules
830 830
      *
@@ -834,11 +834,11 @@  discard block
 block discarded – undo
834 834
      */
835 835
     public static function liste_modeles($db, $maxfilenamelength = 0)
836 836
     {
837
-		// phpcs:enable
837
+        // phpcs:enable
838 838
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
839 839
     }
840 840
 
841
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
841
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
842 842
     /**
843 843
      *   Show table for lines
844 844
      *
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
         }
900 900
     }
901 901
 
902
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
902
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
903 903
     /**
904 904
      *  Show top header of page.
905 905
      *
@@ -912,7 +912,7 @@  discard block
 block discarded – undo
912 912
      */
913 913
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
914 914
     {
915
-		// phpcs:enable
915
+        // phpcs:enable
916 916
         global $conf, $langs;
917 917
 
918 918
         $ltrdirection = 'L';
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
         return $top_shift;
1164 1164
     }
1165 1165
 
1166
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1166
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1167 1167
     /**
1168 1168
      *      Show footer of page. Need this->emetteur object
1169 1169
      *
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.