Passed
Push — GENERAL_BUG_REVIEW_240911 ( 3362b2...8cbbee )
by Rafael
49:13
created
public/htdocs/core/modules/barcode/doc/phpbarcode.modules.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $_GET["scale"] = $scale;
156 156
         $_GET["mode"] = $mode;
157 157
 
158
-        global $filebarcode;    // Retrieve variable where to store filename
158
+        global $filebarcode; // Retrieve variable where to store filename
159 159
         if (empty($filebarcode)) {
160 160
             $filebarcode = '';
161 161
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
         $newcode = $code;
205 205
         if (!preg_match('/^\w+$/', $code) || dol_strlen($code) > 32) {
206
-            $newcode = dol_hash($newcode, 'md5');   // No need for security here, we can use md5
206
+            $newcode = dol_hash($newcode, 'md5'); // No need for security here, we can use md5
207 207
         }
208 208
 
209 209
         global $filebarcode;
Please login to merge, or discard this patch.
public/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
 
179 179
         $newcode = $code;
180 180
         if (!preg_match('/^\w+$/', $code) || dol_strlen($code) > 32) {
181
-            $newcode = dol_hash($newcode, 'md5');   // No need for security here, we can use md5
181
+            $newcode = dol_hash($newcode, 'md5'); // No need for security here, we can use md5
182 182
         }
183 183
 
184 184
         $filebarcode = $conf->barcode->dir_temp . '/barcode_' . $newcode . '_' . $encoding . '.png';
Please login to merge, or discard this patch.
public/htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $this->atleastonediscount = 0;
134 134
     }
135 135
 
136
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
136
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
137 137
     /**
138 138
      *  Function to build pdf onto disk
139 139
      *
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
149 149
     {
150
-		// phpcs:enable
150
+        // phpcs:enable
151 151
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
152 152
 
153 153
         if (!is_object($outputlangs)) {
@@ -1100,7 +1100,7 @@  discard block
 block discarded – undo
1100 1100
         return ($tab2_top + ($tab2_hl * $index));
1101 1101
     }
1102 1102
 
1103
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1103
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1104 1104
     /**
1105 1105
      *   Show table for lines
1106 1106
      *
@@ -1156,8 +1156,8 @@  discard block
 block discarded – undo
1156 1156
         }
1157 1157
     }
1158 1158
 
1159
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1160
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1159
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1160
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1161 1161
     /**
1162 1162
      *  Show top header of page.
1163 1163
      *
@@ -1170,7 +1170,7 @@  discard block
 block discarded – undo
1170 1170
      */
1171 1171
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $titlekey = "StockTransferSheetProforma")
1172 1172
     {
1173
-		// phpcs:enable
1173
+        // phpcs:enable
1174 1174
         global $conf, $langs;
1175 1175
 
1176 1176
         // Load traductions files required by page
@@ -1449,8 +1449,8 @@  discard block
 block discarded – undo
1449 1449
         return $top_shift;
1450 1450
     }
1451 1451
 
1452
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1453
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1452
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1453
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1454 1454
     /**
1455 1455
      *      Show footer of page. Need this->emetteur object
1456 1456
      *
@@ -1462,7 +1462,7 @@  discard block
 block discarded – undo
1462 1462
      */
1463 1463
     protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
1464 1464
     {
1465
-		// phpcs:enable
1465
+        // phpcs:enable
1466 1466
         $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0);
1467 1467
         return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext);
1468 1468
     }
Please login to merge, or discard this patch.
public/htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         }*/
166 166
     }
167 167
 
168
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
168
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
169 169
     /**
170 170
      *  Function to build pdf onto disk
171 171
      *
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
181 181
     {
182
-		// phpcs:enable
182
+        // phpcs:enable
183 183
         global $user, $conf, $langs, $hookmanager;
184 184
 
185 185
         $object->fetch_thirdparty();
@@ -762,8 +762,8 @@  discard block
 block discarded – undo
762 762
         }
763 763
     }
764 764
 
765
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
766
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
765
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
766
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
767 767
     /**
768 768
      *  Show total to pay
769 769
      *
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
      */
777 777
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
778 778
     {
779
-		// phpcs:enable
779
+        // phpcs:enable
780 780
         $default_font_size = pdf_getPDFFontSize($outputlangs);
781 781
 
782 782
         $tab2_top = $posy;
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
         return ($tab2_top + ($tab2_hl * $index));
877 877
     }
878 878
 
879
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
879
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
880 880
     /**
881 881
      *   Show table for lines
882 882
      *
@@ -891,7 +891,7 @@  discard block
 block discarded – undo
891 891
      */
892 892
     protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
893 893
     {
894
-		// phpcs:enable
894
+        // phpcs:enable
895 895
         global $conf;
896 896
 
897 897
         // Force to disable hidetop and hidebottom
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
         return false;
998 998
     }
999 999
 
1000
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1000
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1001 1001
     /**
1002 1002
      *  Show top header of page.
1003 1003
      *
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
      */
1010 1010
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
1011 1011
     {
1012
-		// phpcs:enable
1012
+        // phpcs:enable
1013 1013
         global $conf, $langs;
1014 1014
 
1015 1015
         $langs->load("orders");
@@ -1260,7 +1260,7 @@  discard block
 block discarded – undo
1260 1260
         return $top_shift;
1261 1261
     }
1262 1262
 
1263
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1263
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1264 1264
     /**
1265 1265
      *  Show footer of page. Need this->emetteur object
1266 1266
      *
@@ -1272,7 +1272,7 @@  discard block
 block discarded – undo
1272 1272
      */
1273 1273
     protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
1274 1274
     {
1275
-		// phpcs:enable
1275
+        // phpcs:enable
1276 1276
         $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0);
1277 1277
         return pdf_pagefoot($pdf, $outputlangs, 'SHIPPING_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext);
1278 1278
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
                 $pdf->MultiCell(0, 3, ''); // Set interline to 3
350 350
                 $pdf->SetTextColor(0, 0, 0);
351 351
 
352
-                $tab_top = 90;  // position of top tab
352
+                $tab_top = 90; // position of top tab
353 353
                 $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
354 354
 
355 355
                 $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext;
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
             // Show recipient
1228 1228
             $widthrecbox = getDolGlobalString('MAIN_PDF_USE_ISO_LOCATION') ? 92 : 100;
1229 1229
             if ($this->page_largeur < 210) {
1230
-                $widthrecbox = 84;  // To work with US executive format
1230
+                $widthrecbox = 84; // To work with US executive format
1231 1231
             }
1232 1232
             $posy = getDolGlobalString('MAIN_PDF_USE_ISO_LOCATION') ? 40 : 42;
1233 1233
             $posx = $this->page_largeur - $this->marge_droite - $widthrecbox;
Please login to merge, or discard this patch.
public/htdocs/core/modules/action/doc/pdf_standard_actions.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $this->subject = $langs->transnoentitiesnoconv("ActionsReport") . ' ' . $this->year . "-" . $this->month;
117 117
     }
118 118
 
119
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
119
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
120 120
     /**
121 121
      *      Write the object to document file to disk
122 122
      *
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function write_file($socid, $outputlangs)
128 128
     {
129
-		// phpcs:enable
129
+        // phpcs:enable
130 130
         global $user, $conf, $langs, $hookmanager;
131 131
 
132 132
         if (!is_object($outputlangs)) {
Please login to merge, or discard this patch.
public/htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $this->posxdesc = $this->marge_gauche + 1;
118 118
     }
119 119
 
120
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
120
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
121 121
     /**
122 122
      *  Function to build pdf onto disk
123 123
      *
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
133 133
     {
134
-		// phpcs:enable
134
+        // phpcs:enable
135 135
         global $user, $langs, $conf, $mysoc, $db, $hookmanager;
136 136
 
137 137
         if (!is_object($outputlangs)) {
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
         }
442 442
     }
443 443
 
444
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
444
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
445 445
     /**
446 446
      *   Show table for lines
447 447
      *
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         }
515 515
     }
516 516
 
517
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
517
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
518 518
     /**
519 519
      *  Show top header of page.
520 520
      *
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
         return 0;
705 705
     }
706 706
 
707
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
707
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
708 708
     /**
709 709
      *      Show footer of page. Need this->emetteur object
710 710
      *
Please login to merge, or discard this patch.
public/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         return $texte;
191 191
     }
192 192
 
193
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
193
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
194 194
     /**
195 195
      *  Function to build a document on disk using the generic odt module.
196 196
      *
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
206 206
     {
207
-		// phpcs:enable
207
+        // phpcs:enable
208 208
         global $stock, $langs, $conf, $mysoc, $hookmanager, $user;
209 209
 
210 210
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         $maxfilesizearray = getMaxFileSizeArray();
174 174
         $maxmin = $maxfilesizearray['maxmin'];
175 175
         if ($maxmin > 0) {
176
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
176
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
177 177
         }
178 178
         $texte .= ' <input type="file" name="uploadfile">';
179 179
         $texte .= '<input type="hidden" value="STOCK_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/stock/doc/pdf_standard.modules.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 
121 121
 
122
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
122
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
123 123
     /**
124 124
      *  Function to build a document on disk using the generic odt module.
125 125
      *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
135 135
     {
136
-		// phpcs:enable
136
+        // phpcs:enable
137 137
         global $user, $langs, $conf, $mysoc, $db, $hookmanager;
138 138
 
139 139
         if (!is_object($outputlangs)) {
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
         }
573 573
     }
574 574
 
575
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
575
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
576 576
     /**
577 577
      *   Show table for lines
578 578
      *
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
         }
680 680
     }
681 681
 
682
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
682
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
683 683
     /**
684 684
      *  Show top header of page.
685 685
      *
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
         return $top_shift;
834 834
     }
835 835
 
836
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
836
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
837 837
     /**
838 838
      *      Show footer of page. Need this->emetteur object
839 839
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -630,7 +630,7 @@
 block discarded – undo
630 630
 
631 631
 
632 632
         if (empty($hidetop)) {
633
-            $pdf->line($this->marge_gauche, $tab_top + 11, $this->page_largeur - $this->marge_droite, $tab_top + 11);   // line takes a position y in 2nd parameter and 4th parameter
633
+            $pdf->line($this->marge_gauche, $tab_top + 11, $this->page_largeur - $this->marge_droite, $tab_top + 11); // line takes a position y in 2nd parameter and 4th parameter
634 634
             $pdf->SetXY($this->posxdesc - 1, $tab_top + 1);
635 635
             $pdf->MultiCell($this->wref, 3, $outputlangs->transnoentities("Ref"), '', 'L');
636 636
         }
Please login to merge, or discard this patch.
public/htdocs/core/lib/company.lib.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 $nbContact = $obj->nb;
86 86
             }
87 87
 
88
-            dol_setcache($cachekey, $nbContact, 120);   // If setting cache fails, this is not a problem, so we do not test result.
88
+            dol_setcache($cachekey, $nbContact, 120); // If setting cache fails, this is not a problem, so we do not test result.
89 89
         }
90 90
 
91 91
         $head[$h][0] = constant('BASE_URL') . '/societe/contact.php?socid=' . $object->id;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             } else {
165 165
                 dol_print_error($db);
166 166
             }
167
-            dol_setcache($cachekey, $nbProject, 120);   // If setting cache fails, this is not a problem, so we do not test result.
167
+            dol_setcache($cachekey, $nbProject, 120); // If setting cache fails, this is not a problem, so we do not test result.
168 168
         }
169 169
         $head[$h][0] = constant('BASE_URL') . '/societe/project.php?socid=' . $object->id;
170 170
         $head[$h][1] = $langs->trans("Projects");
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             } else {
331 331
                 dol_print_error($db);
332 332
             }
333
-            dol_setcache($cachekey, $nbTicket, 120);        // If setting cache fails, this is not a problem, so we do not test result.
333
+            dol_setcache($cachekey, $nbTicket, 120); // If setting cache fails, this is not a problem, so we do not test result.
334 334
         }
335 335
 
336 336
         $head[$h][0] = constant('BASE_URL') . '/ticket/list.php?socid=' . urlencode((string) ($object->id));
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                 } else {
377 377
                     dol_print_error($db);
378 378
                 }
379
-                dol_setcache($cachekey, $nbNotif, 120);     // If setting cache fails, this is not a problem, so we do not test result.
379
+                dol_setcache($cachekey, $nbNotif, 120); // If setting cache fails, this is not a problem, so we do not test result.
380 380
             }
381 381
 
382 382
             $head[$h][0] = constant('BASE_URL') . '/societe/notify/card.php?socid=' . urlencode((string) ($object->id));
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
             $nbFiles = count(dol_dir_list($upload_dir, 'files', 0, '', '(\.meta|_preview.*\.png)$'));
420 420
             $nbLinks = Link::count($db, $object->element, $object->id);
421 421
             $totalAttached = $nbFiles + $nbLinks;
422
-            dol_setcache($cachekey, $totalAttached, 120);       // If setting cache fails, this is not a problem, so we do not test result.
422
+            dol_setcache($cachekey, $totalAttached, 120); // If setting cache fails, this is not a problem, so we do not test result.
423 423
         }
424 424
 
425 425
         $head[$h][0] = constant('BASE_URL') . '/societe/document.php?socid=' . $object->id;
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
             } else {
454 454
                 dol_syslog('Failed to count actioncomm ' . $db->lasterror(), LOG_ERR);
455 455
             }
456
-            dol_setcache($cachekey, $nbEvent, 120);     // If setting cache fails, this is not a problem, so we do not test result.
456
+            dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result.
457 457
         }
458 458
 
459 459
         $head[$h][1] .= '/';
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
         return false;
855 855
     }
856 856
 
857
-    $country_code_in_EEC = getCountriesInEEC();     // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC']
857
+    $country_code_in_EEC = getCountriesInEEC(); // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC']
858 858
 
859 859
     //print "dd".$object->country_code;
860 860
     return in_array($object->country_code, $country_code_in_EEC);
@@ -1300,7 +1300,7 @@  discard block
 block discarded – undo
1300 1300
     $mode = 'view';
1301 1301
 
1302 1302
     $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
1303
-    $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
1303
+    $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
1304 1304
     $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
1305 1305
     $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
1306 1306
 
@@ -1846,7 +1846,7 @@  discard block
 block discarded – undo
1846 1846
 
1847 1847
         // Fields from hook
1848 1848
         $parameters = array('sql' => &$sql, 'filterobj' => $filterobj, 'objcon' => $objcon);
1849
-        $reshook = $hookmanager->executeHooks('showActionsDoneListSelect', $parameters);    // Note that $action and $object may have been modified by hook
1849
+        $reshook = $hookmanager->executeHooks('showActionsDoneListSelect', $parameters); // Note that $action and $object may have been modified by hook
1850 1850
         if (!empty($hookmanager->resPrint)) {
1851 1851
             $sql .= $hookmanager->resPrint;
1852 1852
         }
@@ -1868,7 +1868,7 @@  discard block
 block discarded – undo
1868 1868
 
1869 1869
         // Fields from hook
1870 1870
         $parameters = array('sql' => &$sql, 'filterobj' => $filterobj, 'objcon' => $objcon);
1871
-        $reshook = $hookmanager->executeHooks('showActionsDoneListFrom', $parameters);    // Note that $action and $object may have been modified by hook
1871
+        $reshook = $hookmanager->executeHooks('showActionsDoneListFrom', $parameters); // Note that $action and $object may have been modified by hook
1872 1872
         if (!empty($hookmanager->resPrint)) {
1873 1873
             $sql .= $hookmanager->resPrint;
1874 1874
         }
@@ -1993,7 +1993,7 @@  discard block
 block discarded – undo
1993 1993
 
1994 1994
         // Fields from hook
1995 1995
         $parameters = array('sql' => &$sql, 'filterobj' => $filterobj, 'objcon' => $objcon, 'module' => $module);
1996
-        $reshook = $hookmanager->executeHooks('showActionsDoneListWhere', $parameters);    // Note that $action and $object may have been modified by hook
1996
+        $reshook = $hookmanager->executeHooks('showActionsDoneListWhere', $parameters); // Note that $action and $object may have been modified by hook
1997 1997
         if (!empty($hookmanager->resPrint)) {
1998 1998
             $sql .= $hookmanager->resPrint;
1999 1999
         }
@@ -2693,14 +2693,14 @@  discard block
 block discarded – undo
2693 2693
         $parammessageform = 'ONLINE_PAYMENT_MESSAGE_FORM_' . $suffix;
2694 2694
         if (getDolGlobalString($parammessageform) !== '') {
2695 2695
             print $langs->transnoentities(getDolGlobalString($parammessageform));
2696
-        } elseif (getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORM')  !== '') {
2696
+        } elseif (getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORM') !== '') {
2697 2697
             print $langs->transnoentities(getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORM'));
2698 2698
         }
2699 2699
 
2700 2700
         // Add other message if VAT exists
2701 2701
         if (!empty($object->total_vat) || !empty($object->total_tva)) {
2702 2702
             $parammessageform = 'ONLINE_PAYMENT_MESSAGE_FORMIFVAT_' . $suffix;
2703
-            if (getDolGlobalString($parammessageform)  !== '') {
2703
+            if (getDolGlobalString($parammessageform) !== '') {
2704 2704
                 print $langs->transnoentities(getDolGlobalString($parammessageform));
2705 2705
             } elseif (getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORMIFVAT') !== '') {
2706 2706
                 print $langs->transnoentities(getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORMIFVAT'));
Please login to merge, or discard this patch.