Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/core/modules/modDataPolicy.class.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
  */
39 39
 class modDataPolicy extends DolibarrModules
40 40
 {
41
-	// @codingStandardsIgnoreEnd
41
+    // @codingStandardsIgnoreEnd
42 42
     /**
43 43
      * Constructor. Define names, constants, directories, boxes, permissions
44 44
      *
Please login to merge, or discard this patch.
htdocs/core/modules/barcode/mod_barcode_product_standard.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     }
270 270
 
271 271
 
272
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
272
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
273 273
     /**
274 274
      *  Return if a code is used (by other element)
275 275
      *
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     public function verif_dispo($db, $code, $product)
282 282
     {
283
-		// phpcs:enable
283
+        // phpcs:enable
284 284
         $sql = "SELECT barcode FROM " . MAIN_DB_PREFIX . "product";
285 285
         $sql .= " WHERE barcode = '" . $db->escape($code) . "'";
286 286
         $sql .= " AND entity IN (" . getEntity('product') . ")";
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
         }
302 302
     }
303 303
 
304
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
304
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
305 305
     /**
306 306
      *  Return if a barcode value match syntax
307 307
      *
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     public function verif_syntax($codefortest, $typefortest)
313 313
     {
314
-		// phpcs:enable
314
+        // phpcs:enable
315 315
         global $conf;
316 316
 
317 317
         $result = 0;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last  character (* or ?) used in the mask by the key
198 198
         if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...)
199 199
             $literaltype = '';
200
-            $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type
200
+            $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type
201 201
             switch ($literaltype) {
202 202
                 case 'EAN13': //EAN13 rowid = 2
203 203
                     if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         $code = strtoupper(trim($code));
245 245
 
246 246
         if (empty($code) && $this->code_null && !getDolGlobalString('BARCODE_STANDARD_PRODUCT_MASK')) {
247
-            $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
247
+            $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
248 248
         } elseif (empty($code) && (!$this->code_null || getDolGlobalString('BARCODE_STANDARD_PRODUCT_MASK'))) {
249 249
             $result = -2;
250 250
         } else {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 if ($is_dispo != 0) {
254 254
                     $result = -3;
255 255
                 } else {
256
-                    $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
256
+                    $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
257 257
                 }
258 258
             } else {
259 259
                 if (dol_strlen($code) == 0) {
Please login to merge, or discard this patch.
htdocs/core/modules/barcode/mod_barcode_thirdparty_standard.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     }
274 274
 
275 275
 
276
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
276
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
277 277
     /**
278 278
      *  Return if a code is used (by other element)
279 279
      *
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function verif_dispo($db, $code, $thirdparty)
286 286
     {
287
-		// phpcs:enable
287
+        // phpcs:enable
288 288
         $sql = "SELECT barcode FROM " . MAIN_DB_PREFIX . "societe";
289 289
         $sql .= " WHERE barcode = '" . $db->escape($code) . "'";
290 290
         if ($thirdparty->id > 0) {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         }
304 304
     }
305 305
 
306
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
306
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
307 307
     /**
308 308
      *  Return if a barcode value match syntax
309 309
      *
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      */
314 314
     public function verif_syntax($codefortest, $typefortest)
315 315
     {
316
-		// phpcs:enable
316
+        // phpcs:enable
317 317
         global $conf;
318 318
 
319 319
         $result = 0;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last  character (* or ?) used in the mask by the key
205 205
         if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...)
206 206
             $literaltype = '';
207
-            $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type
207
+            $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type
208 208
             switch ($literaltype) {
209 209
                 case 'EAN13': //EAN13 rowid = 2
210 210
                     if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $code = strtoupper(trim($code));
248 248
 
249 249
         if (empty($code) && $this->code_null && !getDolGlobalString('BARCODE_STANDARD_THIRDPARTY_MASK')) {
250
-            $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
250
+            $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
251 251
         } elseif (empty($code) && (!$this->code_null || getDolGlobalString('BARCODE_STANDARD_THIRDPARTY_MASK'))) {
252 252
             $result = -2;
253 253
         } else {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                 if ($is_dispo != 0) {
257 257
                     $result = -3;
258 258
                 } else {
259
-                    $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
259
+                    $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
260 260
                 }
261 261
             } else {
262 262
                 if (dol_strlen($code) == 0) {
Please login to merge, or discard this patch.
htdocs/core/modules/contract/modules_contract.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  */
40 40
 abstract class ModelePDFContract extends CommonDocGenerator
41 41
 {
42
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43 43
     /**
44 44
      *  Return list of active generation modules
45 45
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function liste_modeles($db, $maxfilenamelength = 0)
51 51
     {
52
-		// phpcs:enable
52
+        // phpcs:enable
53 53
         $type = 'contract';
54 54
         $list = array();
55 55
 
Please login to merge, or discard this patch.
htdocs/core/modules/contract/doc/pdf_strato.modules.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $this->posxdesc = $this->marge_gauche + 1;
129 129
     }
130 130
 
131
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
131
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
132 132
     /**
133 133
      *  Function to build pdf onto disk
134 134
      *
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
144 144
     {
145
-		// phpcs:enable
145
+        // phpcs:enable
146 146
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
147 147
 
148 148
         if (!is_object($outputlangs)) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         }
494 494
     }
495 495
 
496
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
496
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
497 497
     /**
498 498
      *   Show table for lines
499 499
      *
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
         $pdf->MultiCell($this->page_largeur - $this->marge_droite - $posmiddle - 5, 20, '', 1);
576 576
     }
577 577
 
578
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
578
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
579 579
     /**
580 580
      *  Show top header of page.
581 581
      *
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
      */
590 590
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "Contract")
591 591
     {
592
-		// phpcs:enable
592
+        // phpcs:enable
593 593
         global $conf;
594 594
 
595 595
         $top_shift = 0;
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
         return $top_shift;
794 794
     }
795 795
 
796
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
796
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
797 797
     /**
798 798
      *      Show footer of page. Need this->emetteur object
799 799
      *
Please login to merge, or discard this patch.
htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     }
138 138
 
139 139
 
140
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
140
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
141 141
     /**
142 142
      *  Function to build pdf onto disk
143 143
      *
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
153 153
     {
154
-		// phpcs:enable
154
+        // phpcs:enable
155 155
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
156 156
 
157 157
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         }
795 795
     }
796 796
 
797
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
797
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
798 798
     /**
799 799
      *  Return list of active generation modules
800 800
      *
@@ -804,11 +804,11 @@  discard block
 block discarded – undo
804 804
      */
805 805
     public static function liste_modeles($db, $maxfilenamelength = 0)
806 806
     {
807
-		// phpcs:enable
807
+        // phpcs:enable
808 808
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
809 809
     }
810 810
 
811
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
811
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
812 812
     /**
813 813
      *   Show table for lines
814 814
      *
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
         }
870 870
     }
871 871
 
872
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
872
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
873 873
     /**
874 874
      *  Show top header of page.
875 875
      *
@@ -1121,7 +1121,7 @@  discard block
 block discarded – undo
1121 1121
         return $top_shift;
1122 1122
     }
1123 1123
 
1124
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1124
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1125 1125
     /**
1126 1126
      *      Show footer of page. Need this->emetteur object
1127 1127
      *
Please login to merge, or discard this patch.
htdocs/core/modules/asset/modules_asset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  */
40 40
 abstract class ModelePDFAsset extends CommonDocGenerator
41 41
 {
42
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43 43
     /**
44 44
      *  Return list of active generation modules
45 45
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function liste_modeles($db, $maxfilenamelength = 0)
51 51
     {
52
-		// phpcs:enable
52
+        // phpcs:enable
53 53
         $type = 'asset';
54 54
         $list = array();
55 55
 
Please login to merge, or discard this patch.
htdocs/core/modules/ticket/modules_ticket.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
  */
36 36
 abstract class ModelePDFTicket extends CommonDocGenerator
37 37
 {
38
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
38
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
39 39
     /**
40 40
      *  Return list of active generation modules
41 41
      *
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public static function liste_modeles($db, $maxfilenamelength = 0)
47 47
     {
48
-		// phpcs:enable
48
+        // phpcs:enable
49 49
         $type = 'ticket';
50 50
         $list = array();
51 51
 
Please login to merge, or discard this patch.
htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         return $texte;
182 182
     }
183 183
 
184
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
184
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
185 185
     /**
186 186
      *  Function to build a document on disk using the generic odt module.
187 187
      *
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
197 197
     {
198
-		// phpcs:enable
198
+        // phpcs:enable
199 199
         global $user, $langs, $conf, $mysoc, $hookmanager;
200 200
 
201 201
         if (empty($srctemplatepath)) {
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         return -1;
408 408
     }
409 409
 
410
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
410
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
411 411
     /**
412 412
      * get substitution array for object
413 413
      *
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      */
419 419
     public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object')
420 420
     {
421
-		// phpcs:enable
421
+        // phpcs:enable
422 422
         if (!$object instanceof User) {
423 423
             dol_syslog("Expected Ticket object, got " . gettype($object), LOG_ERR);
424 424
             return array();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
         $maxfilesizearray = getMaxFileSizeArray();
165 165
         $maxmin = $maxfilesizearray['maxmin'];
166 166
         if ($maxmin > 0) {
167
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
167
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
168 168
         }
169 169
         $texte .= ' <input type="file" name="uploadfile">';
170 170
         $texte .= '<input type="hidden" value="TICKET_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.