Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/api/class/api_setup.class.php 1 patch
Indentation   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
         return $list;
725 725
     }
726 726
 
727
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
727
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
728 728
     /**
729 729
      * Clean sensible object datas
730 730
      *
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
      */
734 734
     protected function _cleanObjectDatas($object)
735 735
     {
736
-		// phpcs:enable
736
+        // phpcs:enable
737 737
         $object = parent::_cleanObjectDatas($object);
738 738
 
739 739
         unset($object->error);
@@ -1401,7 +1401,6 @@  discard block
 block discarded – undo
1401 1401
     }
1402 1402
 
1403 1403
     /**
1404
-
1405 1404
      * Update Extrafield object
1406 1405
      *
1407 1406
      * @param   string  $attrname       extrafield attrname
Please login to merge, or discard this patch.
public/htdocs/api/class/api.class.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         //$this->r->setSupportedFormats('jsonFormat');
73 73
     }
74 74
 
75
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
75
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
76 76
     /**
77 77
      * Check and convert a string depending on its type/name.
78 78
      *
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function _checkValForAPI($field, $value, $object)
85 85
     {
86
-		// phpcs:enable
86
+        // phpcs:enable
87 87
         if (!is_array($value)) {
88 88
             // Sanitize the value using its type declared into ->fields of $object
89 89
             if (!empty($object->fields) && !empty($object->fields[$field]) && !empty($object->fields[$field]['type'])) {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
     }
129 129
 
130
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
130
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
131 131
     /**
132 132
      * Filter properties that will be returned on object
133 133
      *
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     protected function _filterObjectProperties($object, $properties)
139 139
     {
140
-		// phpcs:enable
140
+        // phpcs:enable
141 141
         // If properties is empty, we return all properties
142 142
         if (empty($properties)) {
143 143
             return $object;
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         return $object;
176 176
     }
177 177
 
178
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
178
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
179 179
     /**
180 180
      * Clean sensible object datas
181 181
      *
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     protected function _cleanObjectDatas($object)
186 186
     {
187
-		// phpcs:enable
187
+        // phpcs:enable
188 188
         // Remove $db object property for object
189 189
         unset($object->db);
190 190
         unset($object->isextrafieldmanaged);
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         return $object;
357 357
     }
358 358
 
359
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
359
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
360 360
     /**
361 361
      * Check access by user to a given resource
362 362
      *
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      */
371 371
     protected static function _checkAccessToResource($resource, $resource_id = 0, $dbtablename = '', $feature2 = '', $dbt_keyfield = 'fk_soc', $dbt_select = 'rowid')
372 372
     {
373
-		// phpcs:enable
373
+        // phpcs:enable
374 374
         // Features/modules to check
375 375
         $featuresarray = array($resource);
376 376
         if (preg_match('/&/', $resource)) {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
         return checkUserAccessToObject(DolibarrApiAccess::$user, $featuresarray, $resource_id, $dbtablename, $feature2, $dbt_keyfield, $dbt_select);
388 388
     }
389 389
 
390
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
390
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
391 391
     /**
392 392
      * Return if a $sqlfilters parameter is valid
393 393
      * Function no more used. Kept for backward compatibility with old APIs of modules
@@ -398,13 +398,13 @@  discard block
 block discarded – undo
398 398
      */
399 399
     protected function _checkFilters($sqlfilters, &$error = '')
400 400
     {
401
-		// phpcs:enable
401
+        // phpcs:enable
402 402
         $firstandlastparenthesis = 0;
403 403
         return dolCheckFilters($sqlfilters, $error, $firstandlastparenthesis);
404 404
     }
405 405
 
406
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
407
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
406
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
407
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
408 408
     /**
409 409
      * Function to forge a SQL criteria from a Generic filter string.
410 410
      * Function no more used. Kept for backward compatibility with old APIs of modules
Please login to merge, or discard this patch.
public/htdocs/variants/combinations.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -778,7 +778,7 @@
 block discarded – undo
778 778
         <div style="text-align: center">
779 779
         <input type="submit" name="create" <?php if (!is_array($productCombination2ValuePairs1)) {
780 780
             print ' disabled="disabled"';
781
-                                           } ?> value="<?php echo $action == 'add' ? $langs->trans('Create') : $langs->trans("Save") ?>" class="button button-save">
781
+                                            } ?> value="<?php echo $action == 'add' ? $langs->trans('Create') : $langs->trans("Save") ?>" class="button button-save">
782 782
         &nbsp;
783 783
         <input type="submit" name="cancel" value="<?php echo $langs->trans("Cancel"); ?>" class="button button-cancel">
784 784
         </div>
Please login to merge, or discard this patch.
public/htdocs/variants/class/ProductAttribute.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
         }
514 514
     }
515 515
 
516
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
516
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
517 517
     /**
518 518
      * Load array lines
519 519
      *
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
      */
523 523
     public function fetch_lines($filters = '')
524 524
     {
525
-		// phpcs:enable
525
+        // phpcs:enable
526 526
         global $langs;
527 527
 
528 528
         $this->lines = array();
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
         return $this->LibStatut(0, $mode);
1243 1243
     }
1244 1244
 
1245
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1245
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1246 1246
     /**
1247 1247
      * Return label of a status
1248 1248
      *
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
      */
1253 1253
     public function LibStatut($status, $mode = 1)
1254 1254
     {
1255
-		// phpcs:enable
1255
+        // phpcs:enable
1256 1256
         return '';
1257 1257
     }
1258 1258
 
Please login to merge, or discard this patch.
public/htdocs/imports/class/import.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     }
158 158
 
159 159
 
160
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
160
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
161 161
     /**
162 162
      *  Load description int this->array_import_module, this->array_import_fields, ... of an importable dataset
163 163
      *
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function load_arrays($user, $filter = '')
169 169
     {
170
-		// phpcs:enable
170
+        // phpcs:enable
171 171
         global $langs, $conf;
172 172
 
173 173
         dol_syslog(get_class($this) . "::load_arrays user=" . $user->id . " filter=" . $filter);
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 
288 288
 
289 289
 
290
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
290
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
291 291
     /**
292 292
      *  Build an import example file.
293 293
      *  Arrays this->array_export_xxx are already loaded for required datatoexport
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     public function build_example_file($model, $headerlinefields, $contentlinevalues, $datatoimport)
302 302
     {
303
-		// phpcs:enable
303
+        // phpcs:enable
304 304
         global $conf, $langs;
305 305
 
306 306
         $indice = 0;
Please login to merge, or discard this patch.
public/htdocs/webhook/class/target.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
         return $this->LibStatut($this->status, $mode);
784 784
     }
785 785
 
786
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
786
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
787 787
     /**
788 788
      *  Return the status
789 789
      *
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
      */
794 794
     public function LibStatut($status, $mode = 0)
795 795
     {
796
-		// phpcs:enable
796
+        // phpcs:enable
797 797
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
798 798
             global $langs;
799 799
 
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/reception/class/api_receptions.class.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public $reception;
46 46
 
47 47
     /**
48
-        * Constructor
48
+     * Constructor
49 49
      */
50 50
     public function __construct()
51 51
     {
@@ -623,15 +623,15 @@  discard block
 block discarded – undo
623 623
     */
624 624
 
625 625
     /**
626
-    * Close a reception (Classify it as "Delivered")
627
-    *
628
-    * @param    int     $id             Reception ID
629
-    * @param    int     $notrigger      Disabled triggers
630
-    *
631
-    * @url POST    {id}/close
632
-    *
633
-    * @return  Object
634
-    */
626
+     * Close a reception (Classify it as "Delivered")
627
+     *
628
+     * @param    int     $id             Reception ID
629
+     * @param    int     $notrigger      Disabled triggers
630
+     *
631
+     * @url POST    {id}/close
632
+     *
633
+     * @return  Object
634
+     */
635 635
     public function close($id, $notrigger = 0)
636 636
     {
637 637
         if (!DolibarrApiAccess::$user->hasRight('reception', 'creer')) {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
         return $this->_cleanObjectDatas($this->reception);
664 664
     }
665 665
 
666
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
666
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
667 667
     /**
668 668
      * Clean sensible object datas
669 669
      *
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
      */
673 673
     protected function _cleanObjectDatas($object)
674 674
     {
675
-		// phpcs:enable
675
+        // phpcs:enable
676 676
         $object = parent::_cleanObjectDatas($object);
677 677
 
678 678
         unset($object->thirdparty); // id already returned
Please login to merge, or discard this patch.
public/htdocs/reception/class/reception.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
         }
1182 1182
     }
1183 1183
 
1184
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1184
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1185 1185
     /**
1186 1186
      *  Load lines
1187 1187
      *
@@ -1189,7 +1189,7 @@  discard block
 block discarded – undo
1189 1189
      */
1190 1190
     public function fetch_lines()
1191 1191
     {
1192
-		// phpcs:enable
1192
+        // phpcs:enable
1193 1193
         $this->lines = array();
1194 1194
 
1195 1195
         require_once constant('DOL_DOCUMENT_ROOT') . '/fourn/class/fournisseur.commande.dispatch.class.php';
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
         return $this->LibStatut($this->statut, $mode);
1335 1335
     }
1336 1336
 
1337
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1337
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1338 1338
     /**
1339 1339
      * Return label of a status
1340 1340
      *
@@ -1344,7 +1344,7 @@  discard block
 block discarded – undo
1344 1344
      */
1345 1345
     public function LibStatut($status, $mode)
1346 1346
     {
1347
-		// phpcs:enable
1347
+        // phpcs:enable
1348 1348
         global $langs;
1349 1349
 
1350 1350
         // List of long language codes for status
@@ -1510,7 +1510,7 @@  discard block
 block discarded – undo
1510 1510
         }
1511 1511
     }
1512 1512
 
1513
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1513
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1514 1514
     /**
1515 1515
      *  Fetch deliveries method and return an array. Load array this->meths(rowid=>label).
1516 1516
      *
@@ -1518,7 +1518,7 @@  discard block
 block discarded – undo
1518 1518
      */
1519 1519
     public function fetch_delivery_methods()
1520 1520
     {
1521
-		// phpcs:enable
1521
+        // phpcs:enable
1522 1522
         global $langs;
1523 1523
         $this->meths = array();
1524 1524
 
@@ -1536,7 +1536,7 @@  discard block
 block discarded – undo
1536 1536
         }
1537 1537
     }
1538 1538
 
1539
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1539
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1540 1540
     /**
1541 1541
      *  Fetch all deliveries method and return an array. Load array this->listmeths.
1542 1542
      *
@@ -1545,7 +1545,7 @@  discard block
 block discarded – undo
1545 1545
      */
1546 1546
     public function list_delivery_methods($id = 0)
1547 1547
     {
1548
-		// phpcs:enable
1548
+        // phpcs:enable
1549 1549
         global $langs;
1550 1550
 
1551 1551
         $this->listmeths = array();
Please login to merge, or discard this patch.