Passed
Push — main ( 55273f...7ed502 )
by Rafael
46:12
created
htdocs/hrm/class/job.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
         return $this->LibStatut($this->status, $mode);
834 834
     }
835 835
 
836
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
836
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
837 837
     /**
838 838
      *  Return the status
839 839
      *
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
      */
844 844
     public function LibStatut($status, $mode = 0)
845 845
     {
846
-		// phpcs:enable
846
+        // phpcs:enable
847 847
         return '';      // There is no status on job profile for the moment
848 848
 
849 849
         /*
Please login to merge, or discard this patch.
htdocs/hrm/class/skill.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
         return $this->LibStatut($this->status, $mode);
874 874
     }
875 875
 
876
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
876
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
877 877
     /**
878 878
      *  Return the status
879 879
      *
@@ -887,7 +887,7 @@  discard block
 block discarded – undo
887 887
             $status = 0;
888 888
         }
889 889
 
890
-		// phpcs:enable
890
+        // phpcs:enable
891 891
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
892 892
             global $langs;
893 893
             //$langs->load("hrm");
Please login to merge, or discard this patch.
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.
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.
htdocs/api/class/api_access.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $this->db = $db;
82 82
     }
83 83
 
84
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName
84
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName
85 85
     /**
86 86
      * Check access
87 87
      *
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function __isAllowed()
94 94
     {
95
-		// phpcs:enable
95
+        // phpcs:enable
96 96
         global $conf, $db, $user;
97 97
 
98 98
         $login = '';
@@ -229,13 +229,13 @@  discard block
 block discarded – undo
229 229
         return in_array(static::$role, (array) $requirefortest) || static::$role == 'admin';
230 230
     }
231 231
 
232
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName
232
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName
233 233
     /**
234 234
      * @return string string to be used with WWW-Authenticate header
235 235
      */
236 236
     public function __getWWWAuthenticateString()
237 237
     {
238
-		// phpcs:enable
238
+        // phpcs:enable
239 239
         return '';
240 240
     }
241 241
 
Please login to merge, or discard this patch.
htdocs/api/class/api_setup.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
         return $list;
723 723
     }
724 724
 
725
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
725
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
726 726
     /**
727 727
      * Clean sensible object datas
728 728
      *
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
      */
732 732
     protected function _cleanObjectDatas($object)
733 733
     {
734
-		// phpcs:enable
734
+        // phpcs:enable
735 735
         $object = parent::_cleanObjectDatas($object);
736 736
 
737 737
         unset($object->error);
Please login to merge, or discard this patch.
htdocs/api/class/api.class.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         //$this->r->setSupportedFormats('jsonFormat');
71 71
     }
72 72
 
73
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
73
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
74 74
     /**
75 75
      * Check and convert a string depending on its type/name.
76 76
      *
@@ -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
             // TODO Use type detected in $object->fields if $object known and we can
89 89
             if (in_array($field, array('note', 'note_private', 'note_public', 'desc', 'description'))) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
     }
100 100
 
101
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
101
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
102 102
     /**
103 103
      * Filter properties that will be returned on object
104 104
      *
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         return $object;
122 122
     }
123 123
 
124
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
124
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
125 125
     /**
126 126
      * Clean sensible object datas
127 127
      *
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     protected function _cleanObjectDatas($object)
132 132
     {
133
-		// phpcs:enable
133
+        // phpcs:enable
134 134
         // Remove $db object property for object
135 135
         unset($object->db);
136 136
         unset($object->isextrafieldmanaged);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         return $object;
289 289
     }
290 290
 
291
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
291
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
292 292
     /**
293 293
      * Check access by user to a given resource
294 294
      *
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     protected static function _checkAccessToResource($resource, $resource_id = 0, $dbtablename = '', $feature2 = '', $dbt_keyfield = 'fk_soc', $dbt_select = 'rowid')
304 304
     {
305
-		// phpcs:enable
305
+        // phpcs:enable
306 306
         // Features/modules to check
307 307
         $featuresarray = array($resource);
308 308
         if (preg_match('/&/', $resource)) {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         return checkUserAccessToObject(DolibarrApiAccess::$user, $featuresarray, $resource_id, $dbtablename, $feature2, $dbt_keyfield, $dbt_select);
320 320
     }
321 321
 
322
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
322
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
323 323
     /**
324 324
      * Return if a $sqlfilters parameter is valid
325 325
      * Function no more used. Kept for backward compatibility with old APIs of modules
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
      */
331 331
     protected function _checkFilters($sqlfilters, &$error = '')
332 332
     {
333
-		// phpcs:enable
333
+        // phpcs:enable
334 334
         $firstandlastparenthesis = 0;
335 335
         return dolCheckFilters($sqlfilters, $error, $firstandlastparenthesis);
336 336
     }
337 337
 
338
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
339
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
338
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
339
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
340 340
     /**
341 341
      * Function to forge a SQL criteria from a Generic filter string.
342 342
      * Function no more used. Kept for backward compatibility with old APIs of modules
Please login to merge, or discard this patch.
htdocs/api/class/api_documents.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
         throw new RestException(403);
996 996
     }
997 997
 
998
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName
998
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName
999 999
     /**
1000 1000
      * Validate fields before create or update object
1001 1001
      *
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
      */
1006 1006
     private function _validate_file($data)
1007 1007
     {
1008
-		// phpcs:enable
1008
+        // phpcs:enable
1009 1009
         $result = array();
1010 1010
         foreach (Documents::$DOCUMENT_FIELDS as $field) {
1011 1011
             if (!isset($data[$field])) {
Please login to merge, or discard this patch.
htdocs/public/payment/newpayment.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -585,7 +585,7 @@
 block discarded – undo
585 585
                             'metadata' => $metadata,
586 586
                             'customer' => $customer->id,
587 587
                             'source' => $card,
588
-                          'statement_descriptor_suffix' => dol_trunc($FULLTAG, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description)
588
+                            'statement_descriptor_suffix' => dol_trunc($FULLTAG, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description)
589 589
                         ), array("idempotency_key" => "$FULLTAG", "stripe_account" => "$stripeacc"));
590 590
                         // Return $charge = array('id'=>'ch_XXXX', 'status'=>'succeeded|pending|failed', 'failure_code'=>, 'failure_message'=>...)
591 591
                         if (empty($charge)) {
Please login to merge, or discard this patch.