Test Failed
Push — main ( 29a1e7...86a642 )
by Rafael
61:24
created
template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         $maxfilesizearray = getMaxFileSizeArray();
190 190
         $maxmin = $maxfilesizearray['maxmin'];
191 191
         if ($maxmin > 0) {
192
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
192
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
193 193
         }
194 194
         $texte .= ' <input type="file" name="uploadfile">';
195 195
         $texte .= '<input type="hidden" value="MYMODULE_MYOBJECT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
htdocs/modulebuilder/template/core/modules/mymodule/modules_myobject.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
  */
39 39
 abstract class ModelePDFMyObject extends CommonDocGenerator
40 40
 {
41
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
41
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42 42
     /**
43 43
      *  Return list of active generation modules
44 44
      *
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function liste_modeles($db, $maxfilenamelength = 0)
50 50
     {
51
-		// phpcs:enable
51
+        // phpcs:enable
52 52
         $type = 'myobject';
53 53
         $list = array();
54 54
 
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.
htdocs/modulebuilder/template/class/myobject.class.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * @var int Thirdparty ID
173 173
      */
174
-    public $socid;      // both socid and fk_soc are used
175
-    public $fk_soc;     // both socid and fk_soc are used
174
+    public $socid; // both socid and fk_soc are used
175
+    public $fk_soc; // both socid and fk_soc are used
176 176
 
177 177
     /**
178 178
      * @var int Status
@@ -1058,7 +1058,7 @@  discard block
 block discarded – undo
1058 1058
                 $this->date_creation     = $this->db->jdate($obj->datec);
1059 1059
                 $this->date_modification = empty($obj->datem) ? '' : $this->db->jdate($obj->datem);
1060 1060
                 if (!empty($obj->datev)) {
1061
-                    $this->date_validation   = empty($obj->datev) ? '' : $this->db->jdate($obj->datev);
1061
+                    $this->date_validation = empty($obj->datev) ? '' : $this->db->jdate($obj->datev);
1062 1062
                 }
1063 1063
             }
1064 1064
 
Please login to merge, or discard this patch.
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.
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.
htdocs/salaries/virement_request.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
     print '<table class="noborder centpercent">';
534 534
 
535 535
     print '<tr class="liste_titre">';
536
-     // Action column
536
+        // Action column
537 537
 if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
538 538
     print '<td>&nbsp;</td>';
539 539
 }
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
     print '<td class="center">' . $langs->trans("WithdrawalReceipt") . '</td>';
548 548
 }
549 549
     print '<td>&nbsp;</td>';
550
-     // Action column
550
+        // Action column
551 551
 if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
552 552
     print '<td>&nbsp;</td>';
553 553
 }
Please login to merge, or discard this patch.
htdocs/salaries/class/api_salaries.class.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
         return $paymentsalary;
456 456
     }
457 457
 
458
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
458
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
459 459
     /**
460 460
      * Clean sensible object datas
461 461
      *
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
      */
465 465
     protected function _cleanObjectDatas($object)
466 466
     {
467
-		// phpcs:enable
467
+        // phpcs:enable
468 468
         $object = parent::_cleanObjectDatas($object);
469 469
 
470 470
         unset($object->rowid);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -445,7 +445,9 @@
 block discarded – undo
445 445
     {
446 446
         $paymentsalary = array();
447 447
         $fields = Salaries::$FIELDSPAYMENT;
448
-        if (isModEnabled("bank")) array_push($fields, "accountid");
448
+        if (isModEnabled("bank")) {
449
+            array_push($fields, "accountid");
450
+        }
449 451
         foreach ($fields as $field) {
450 452
             if (!isset($data[$field])) {
451 453
                 throw new RestException(400, "$field field missing");
Please login to merge, or discard this patch.
htdocs/salaries/class/paymentsalary.class.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
     }
689 689
 
690 690
 
691
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
691
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
692 692
     /**
693 693
      *  Mise a jour du lien entre le paiement de  salaire et la ligne dans llx_bank generee
694 694
      *
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
      */
698 698
     public function update_fk_bank($id_bank)
699 699
     {
700
-		// phpcs:enable
700
+        // phpcs:enable
701 701
         $sql = "UPDATE " . MAIN_DB_PREFIX . "payment_salary SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id);
702 702
 
703 703
         dol_syslog(get_class($this) . "::update_fk_bank", LOG_DEBUG);
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
         return $this->LibStatut($this->statut, $mode);
777 777
     }
778 778
 
779
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
779
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
780 780
     /**
781 781
      *  Return the status
782 782
      *
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
      */
787 787
     public function LibStatut($status, $mode = 0)
788 788
     {
789
-		// phpcs:enable
789
+        // phpcs:enable
790 790
         global $langs; // TODO Renvoyer le libelle anglais et faire traduction a affichage
791 791
 
792 792
         $langs->load('compta');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
             $this->amount = $totalamount;
295 295
             $this->total = $totalamount; // deprecated
296 296
             $this->db->commit();
297
-            return $this->id;   // id of the last payment inserted
297
+            return $this->id; // id of the last payment inserted
298 298
         } else {
299 299
             $this->error = $this->db->error();
300 300
             $this->db->rollback();
Please login to merge, or discard this patch.