Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/core/modules/supplier_invoice/modules_facturefournisseur.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  */
38 38
 abstract class ModelePDFSuppliersInvoices extends CommonDocGenerator
39 39
 {
40
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
40
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
41 41
     /**
42 42
      *  Return list of active generation models
43 43
      *
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function liste_modeles($db, $maxfilenamelength = 0)
49 49
     {
50
-		// phpcs:enable
50
+        // phpcs:enable
51 51
         $type = 'invoice_supplier';
52 52
         $list = array();
53 53
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
public/htdocs/core/modules/mrp/doc/pdf_vinci.modules.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     }
122 122
 
123 123
 
124
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
124
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
125 125
     /**
126 126
      *  Function to build pdf onto disk
127 127
      *
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
137 137
     {
138
-		// phpcs:enable
138
+        // phpcs:enable
139 139
         global $user, $langs, $conf, $hookmanager, $mysoc;
140 140
 
141 141
         if (!is_object($outputlangs)) {
@@ -652,8 +652,8 @@  discard block
 block discarded – undo
652 652
         }
653 653
     }
654 654
 
655
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
656
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
655
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
656
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
657 657
     /**
658 658
      *  Show payments table
659 659
      *
@@ -665,12 +665,12 @@  discard block
 block discarded – undo
665 665
      */
666 666
     protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
667 667
     {
668
-		// phpcs:enable
668
+        // phpcs:enable
669 669
         return 1;
670 670
     }
671 671
 
672
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
673
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
672
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
673
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
674 674
     /**
675 675
      *   Show miscellaneous information (payment mode, payment term, ...)
676 676
      *
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
      */
683 683
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs)
684 684
     {
685
-		// phpcs:enable
685
+        // phpcs:enable
686 686
         global $conf, $mysoc;
687 687
         $default_font_size = pdf_getPDFFontSize($outputlangs);
688 688
 
@@ -732,8 +732,8 @@  discard block
 block discarded – undo
732 732
         return $posy;
733 733
     }
734 734
 
735
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
736
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
735
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
736
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
737 737
     /**
738 738
      *  Show total to pay
739 739
      *
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
      */
747 747
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
748 748
     {
749
-		// phpcs:enable
749
+        // phpcs:enable
750 750
         global $conf, $mysoc;
751 751
 
752 752
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
         return ($tab2_top + ($tab2_hl * $index));
938 938
     }
939 939
 
940
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
940
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
941 941
     /**
942 942
      *   Show table for lines
943 943
      *
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
         }
1013 1013
     }
1014 1014
 
1015
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1015
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1016 1016
     /**
1017 1017
      *  Show top header of page.
1018 1018
      *
@@ -1307,7 +1307,7 @@  discard block
 block discarded – undo
1307 1307
         return $top_shift;
1308 1308
     }
1309 1309
 
1310
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1310
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1311 1311
     /**
1312 1312
      *      Show footer of page. Need this->emetteur object
1313 1313
      *
Please login to merge, or discard this patch.
public/htdocs/core/modules/mrp/modules_mo.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  */
41 41
 abstract class ModelePDFMo extends CommonDocGenerator
42 42
 {
43
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
44 44
     /**
45 45
      *  Return list of active generation modules
46 46
      *
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function liste_modeles($db, $maxfilenamelength = 0)
52 52
     {
53
-		// phpcs:enable
53
+        // phpcs:enable
54 54
         $type = 'mrp';
55 55
         $list = array();
56 56
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/bank/doc/pdf_ban.modules.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
 
100
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
100
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
101 101
     /**
102 102
      *  Fonction generant le projet sur le disque
103 103
      *
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function write_file($object, $outputlangs)
109 109
     {
110
-		// phpcs:enable
110
+        // phpcs:enable
111 111
         global $conf, $hookmanager, $langs, $user;
112 112
 
113 113
         if (!is_object($outputlangs)) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     }
275 275
 
276 276
 
277
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
277
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
278 278
     /**
279 279
      *   Show table for lines
280 280
      *
@@ -289,13 +289,13 @@  discard block
 block discarded – undo
289 289
      */
290 290
     protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
291 291
     {
292
-		// phpcs:enable
292
+        // phpcs:enable
293 293
         global $conf, $mysoc;
294 294
 
295 295
         $default_font_size = pdf_getPDFFontSize($outputlangs);
296 296
     }
297 297
 
298
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
298
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
299 299
     /**
300 300
      *  Show top header of page.
301 301
      *
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
309 309
     {
310 310
         global $langs, $conf, $mysoc;
311
-		// phpcs:enable
311
+        // phpcs:enable
312 312
 
313 313
         $default_font_size = pdf_getPDFFontSize($outputlangs);
314 314
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         return 0;
383 383
     }
384 384
 
385
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
385
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
386 386
     /**
387 387
      *      Show footer of page. Need this->emetteur object
388 388
      *
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      */
395 395
     protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
396 396
     {
397
-		// phpcs:enable
397
+        // phpcs:enable
398 398
         global $conf;
399 399
 
400 400
         $showdetails = !getDolGlobalString('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS') ? 0 : $conf->global->MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS;
Please login to merge, or discard this patch.
public/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $this->heightforfooter = $this->marge_basse + 8;
115 115
     }
116 116
 
117
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
117
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
118 118
     /**
119 119
      *  Function to create pdf of company bank account sepa mandate
120 120
      *
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null)
131 131
     {
132
-		// phpcs:enable
132
+        // phpcs:enable
133 133
         global $conf, $hookmanager, $langs, $user, $mysoc;
134 134
 
135 135
         if (!$object instanceof CompanyBankAccount) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
     }
477 477
 
478 478
 
479
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
479
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
480 480
     /**
481 481
      *   Show table for lines
482 482
      *
@@ -491,15 +491,15 @@  discard block
 block discarded – undo
491 491
      */
492 492
     protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
493 493
     {
494
-		// phpcs:enable
494
+        // phpcs:enable
495 495
         global $conf, $mysoc;
496 496
 
497 497
         $default_font_size = pdf_getPDFFontSize($outputlangs);
498 498
     }
499 499
 
500 500
 
501
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
502
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
501
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
502
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
503 503
     /**
504 504
      *   Show miscellaneous information (payment mode, payment term, ...)
505 505
      *
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      */
512 512
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs)
513 513
     {
514
-		// phpcs:enable
514
+        // phpcs:enable
515 515
         global $conf, $mysoc;
516 516
 
517 517
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -535,8 +535,8 @@  discard block
 block discarded – undo
535 535
     }
536 536
 
537 537
 
538
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
539
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
538
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
539
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
540 540
     /**
541 541
      *  Show area for the customer to sign
542 542
      *
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
      */
549 549
     protected function _signature_area(&$pdf, $object, $posy, $outputlangs)
550 550
     {
551
-		// phpcs:enable
551
+        // phpcs:enable
552 552
         $default_font_size = pdf_getPDFFontSize($outputlangs);
553 553
         $tab_top = $posy + 4;
554 554
         $tab_hl = 4;
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
     }
578 578
 
579 579
 
580
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
580
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
581 581
     /**
582 582
      *  Show top header of page.
583 583
      *
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
      */
590 590
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
591 591
     {
592
-		// phpcs:enable
592
+        // phpcs:enable
593 593
         global $langs, $conf, $mysoc;
594 594
 
595 595
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
         return 0;
671 671
     }
672 672
 
673
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
673
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
674 674
     /**
675 675
      *  Show footer of page. Need this->emetteur object
676 676
      *
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
      */
683 683
     protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
684 684
     {
685
-		// phpcs:enable
685
+        // phpcs:enable
686 686
         $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0);
687 687
         return pdf_pagefoot($pdf, $outputlangs, 'PAYMENTORDER_FREE_TEXT', null, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext);
688 688
     }
Please login to merge, or discard this patch.
public/htdocs/core/modules/bank/modules_bank.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
  */
36 36
 abstract class ModeleBankAccountDoc 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 = 'bankaccount';
50 50
         $list = array();
51 51
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         return $list;
56 56
     }
57 57
 
58
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
58
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
59 59
     /**
60 60
      *  Write the document to disk
61 61
      *
@@ -64,5 +64,5 @@  discard block
 block discarded – undo
64 64
      *  @return int                         1 if OK, <=0 if KO
65 65
      */
66 66
     abstract public function write_file($object, $outputlangs);
67
-	// phpcs:enable
67
+    // phpcs:enable
68 68
 }
Please login to merge, or discard this patch.
public/htdocs/core/modules/holiday/modules_holiday.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  */
41 41
 abstract class ModelePDFHoliday extends CommonDocGenerator
42 42
 {
43
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
44 44
     /**
45 45
      *  Return list of active generation modules
46 46
      *
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function liste_modeles($db, $maxfilenamelength = 0)
52 52
     {
53
-		// phpcs:enable
53
+        // phpcs:enable
54 54
         $type = 'holiday';
55 55
         $list = array();
56 56
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/modFournisseur.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -939,8 +939,8 @@
 block discarded – undo
939 939
         }
940 940
 
941 941
         $sql_order = array(
942
-             "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity),
943
-             "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")",
942
+                "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity),
943
+                "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")",
944 944
         );
945 945
 
946 946
         //ODT template for Supplier Invoice
Please login to merge, or discard this patch.