Passed
Push — GENERAL_BUG_REVIEW_240911 ( 776d89...c757bd )
by Rafael
50:33
created
public/htdocs/core/modules/mrp/doc/pdf_vinci.modules.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $this->db = $db;
91 91
         $this->name = "vinci";
92 92
         $this->description = $langs->trans('DocumentModelStandardPDF');
93
-        $this->update_main_doc_field = 1;       // Save the name of generated file as the main doc when generating a doc with this template
93
+        $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template
94 94
 
95 95
         // Page size for A4 format
96 96
         $this->type = 'pdf';
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
                     if ($this->getColumnStatus('desc')) {
520 520
                         $pdf->startTransaction(); //description
521 521
                         $des = $prod -> description;
522
-                        $descr = $des;//implode("<br>", $des);
522
+                        $descr = $des; //implode("<br>", $des);
523 523
 
524 524
                         $this->printStdColumnContent($pdf, $curY, 'desc', $descr);
525 525
 
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 2 patches
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.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 $default_font_size = pdf_getPDFFontSize($outputlangs); // Must be after pdf_getInstance
185 185
 
186 186
                 if (getDolGlobalString('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS')) {
187
-                    $this->heightforfooter  += 6;
187
+                    $this->heightforfooter += 6;
188 188
                 }
189 189
                 $pdf->SetAutoPageBreak(1, 0);
190 190
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 $tab_top = 50;
222 222
                 $tab_top_newpage = 40;
223 223
 
224
-                $tab_height = $this->page_hauteur - $tab_top - $this->heightforfooter  - $this->heightforfreetext ;
224
+                $tab_height = $this->page_hauteur - $tab_top - $this->heightforfooter - $this->heightforfreetext;
225 225
 
226 226
                 // Show notes
227 227
                 if (!empty($object->note_public)) {
@@ -334,9 +334,9 @@  discard block
 block discarded – undo
334 334
                 if (!empty($object->owner_address)) {
335 335
                     $address = $object->owner_address;
336 336
                 } elseif ($thirdparty->id > 0) {
337
-                    $tmpaddresswithoutcountry = $thirdparty->getFullAddress();  // we test on address without country
337
+                    $tmpaddresswithoutcountry = $thirdparty->getFullAddress(); // we test on address without country
338 338
                     if ($tmpaddresswithoutcountry) {
339
-                        $address = $thirdparty->getFullAddress(1);  // full address
339
+                        $address = $thirdparty->getFullAddress(1); // full address
340 340
                     }
341 341
                 }
342 342
                 $posY = $pdf->GetY();
@@ -411,11 +411,11 @@  discard block
 block discarded – undo
411 411
 
412 412
                 // Show square
413 413
                 if ($pagenb == 1) {
414
-                    $this->_tableau($pdf, $tab_top, $this->page_hauteur - $tab_top - $this->heightforinfotot  - $this->heightforfreetext  - $this->heightforfooter, 0, $outputlangs, 0, 0);
415
-                    $bottomlasttab = $this->page_hauteur - $this->heightforinfotot  - $this->heightforfreetext  - $this->heightforfooter  + 1;
414
+                    $this->_tableau($pdf, $tab_top, $this->page_hauteur - $tab_top - $this->heightforinfotot - $this->heightforfreetext - $this->heightforfooter, 0, $outputlangs, 0, 0);
415
+                    $bottomlasttab = $this->page_hauteur - $this->heightforinfotot - $this->heightforfreetext - $this->heightforfooter + 1;
416 416
                 } else {
417
-                    $this->_tableau($pdf, $tab_top_newpage, $this->page_hauteur - $tab_top_newpage - $this->heightforinfotot  - $this->heightforfreetext  - $this->heightforfooter, 0, $outputlangs, 1, 0);
418
-                    $bottomlasttab = $this->page_hauteur - $this->heightforinfotot  - $this->heightforfreetext  - $this->heightforfooter  + 1;
417
+                    $this->_tableau($pdf, $tab_top_newpage, $this->page_hauteur - $tab_top_newpage - $this->heightforinfotot - $this->heightforfreetext - $this->heightforfooter, 0, $outputlangs, 1, 0);
418
+                    $bottomlasttab = $this->page_hauteur - $this->heightforinfotot - $this->heightforfreetext - $this->heightforfooter + 1;
419 419
                 }
420 420
 
421 421
                 //var_dump($tab_top);
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/oauth/google_oauthcallback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
     if ($forlogin) {
170 170
         // Set approval_prompt
171
-        $approval_prompt = getDolGlobalString('OAUTH_GOOGLE_FORCE_PROMPT_ON_LOGIN', 'auto');    // Can be 'force'
171
+        $approval_prompt = getDolGlobalString('OAUTH_GOOGLE_FORCE_PROMPT_ON_LOGIN', 'auto'); // Can be 'force'
172 172
         $apiService->setApprouvalPrompt($approval_prompt);
173 173
     }
174 174
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                     $storage->clearToken('Google');
312 312
 
313 313
                     $tmpuser = new User($db);
314
-                    $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1);    // Load user. Can load with email_oauth2.
314
+                    $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2.
315 315
 
316 316
                     if ($res > 0) {
317 317
                         $username = $tmpuser->login;
Please login to merge, or discard this patch.
public/htdocs/core/modules/expedition/doc/pdf_merou.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
 
111
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
111
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
112 112
     /**
113 113
      *  Function to build pdf onto disk
114 114
      *
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function write_file(&$object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
124 124
     {
125
-		// phpcs:enable
125
+        // phpcs:enable
126 126
         global $user, $conf, $langs, $mysoc, $hookmanager;
127 127
 
128 128
         $object->fetch_thirdparty();
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         }
400 400
     }
401 401
 
402
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
402
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
403 403
     /**
404 404
      *   Show table for lines
405 405
      *
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         $pdf->Rect(10, $tab_top, 190, $tab_height);
441 441
     }
442 442
 
443
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
443
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
444 444
     /**
445 445
      *      Show footer of page. Need this->emetteur object
446 446
      *
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //}
470 470
     }
471 471
 
472
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
472
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
473 473
     /**
474 474
      *  Show top header of page.
475 475
      *
Please login to merge, or discard this patch.
htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
         $maxfilesizearray = getMaxFileSizeArray();
177 177
         $maxmin = $maxfilesizearray['maxmin'];
178 178
         if ($maxmin > 0) {
179
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
179
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
180 180
         }
181 181
         $texte .= ' <input type="file" name="uploadfile">';
182 182
         $texte .= '<input type="hidden" value="EXPEDITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.