Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/core/modules/modFournisseur.class.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
470 470
         // End add extra fields object
471 471
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
472
-        $this->export_sql_end[$r]  = ' FROM ' . MAIN_DB_PREFIX . 'societe as s';
472
+        $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'societe as s';
473 473
         if (is_object($user) && !$user->hasRight('societe', 'client', 'voir')) {
474 474
             $this->export_sql_end[$r] .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'societe_commerciaux as sc ON sc.fk_soc = s.rowid';
475 475
         }
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
         // Add extra fields object
537 537
         $keyforselect = 'commande_fournisseur';
538 538
         $keyforelement = 'order';
539
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
539
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
540 540
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
541 541
         // End add extra fields object
542 542
         // Add extra fields line
Please login to merge, or discard this patch.
htdocs/core/modules/reception/modules_reception.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
  */
33 33
 abstract class ModelePdfReception extends CommonDocGenerator
34 34
 {
35
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
35
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
36 36
     /**
37 37
      *  Return list of active generation modules
38 38
      *
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public static function liste_modeles($db, $maxfilenamelength = 0)
44 44
     {
45
-		// phpcs:enable
45
+        // phpcs:enable
46 46
         $type = 'reception';
47 47
         $list = array();
48 48
 
Please login to merge, or discard this patch.
htdocs/core/modules/reception/doc/pdf_squille.modules.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         }
125 125
     }
126 126
 
127
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
127
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
128 128
     /**
129 129
      *  Function to build pdf onto disk
130 130
      *
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
140 140
     {
141
-		// phpcs:enable
141
+        // phpcs:enable
142 142
         global $user, $conf, $langs, $hookmanager;
143 143
 
144 144
         $object->fetch_thirdparty();
@@ -633,8 +633,8 @@  discard block
 block discarded – undo
633 633
         }
634 634
     }
635 635
 
636
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
637
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
636
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
637
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
638 638
     /**
639 639
      *  Show total to pay
640 640
      *
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
      */
650 650
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $totalOrdered, $totalAmount = 0)
651 651
     {
652
-		// phpcs:enable
652
+        // phpcs:enable
653 653
         global $conf, $mysoc;
654 654
 
655 655
         $sign = 1;
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
         return ($tab2_top + ($tab2_hl * $index));
753 753
     }
754 754
 
755
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
755
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
756 756
     /**
757 757
      *   Show table for lines
758 758
      *
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
         }
847 847
     }
848 848
 
849
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
849
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
850 850
     /**
851 851
      *  Show top header of page.
852 852
      *
@@ -1094,7 +1094,7 @@  discard block
 block discarded – undo
1094 1094
         return 0;
1095 1095
     }
1096 1096
 
1097
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1097
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1098 1098
     /**
1099 1099
      *      Show footer of page. Need this->emetteur object
1100 1100
      *
Please login to merge, or discard this patch.
htdocs/core/modules/propale/modules_propale.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public $atleastoneratenotnull = 0;
57 57
 
58 58
 
59
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
59
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
60 60
     /**
61 61
      *  Return list of active generation modules
62 62
      *
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public static function liste_modeles($db, $maxfilenamelength = 0)
68 68
     {
69
-		// phpcs:enable
69
+        // phpcs:enable
70 70
         $type = 'propal';
71 71
         $list = array();
72 72
 
Please login to merge, or discard this patch.
htdocs/core/modules/propale/doc/pdf_azur.modules.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $this->atleastonediscount = 0;
164 164
     }
165 165
 
166
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
166
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
167 167
     /**
168 168
      *  Function to build pdf onto disk
169 169
      *
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
179 179
     {
180
-		// phpcs:enable
180
+        // phpcs:enable
181 181
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
182 182
 
183 183
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -855,8 +855,8 @@  discard block
 block discarded – undo
855 855
         }
856 856
     }
857 857
 
858
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
859
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
858
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
859
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
860 860
     /**
861 861
      *  Show payments table
862 862
      *
@@ -868,12 +868,12 @@  discard block
 block discarded – undo
868 868
      */
869 869
     protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
870 870
     {
871
-		// phpcs:enable
871
+        // phpcs:enable
872 872
         return 1;
873 873
     }
874 874
 
875
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
876
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
875
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
876
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
877 877
     /**
878 878
      *   Show miscellaneous information (payment mode, payment term, ...)
879 879
      *
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
      */
886 886
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs)
887 887
     {
888
-		// phpcs:enable
888
+        // phpcs:enable
889 889
         global $conf, $mysoc;
890 890
         $default_font_size = pdf_getPDFFontSize($outputlangs);
891 891
 
@@ -1059,8 +1059,8 @@  discard block
 block discarded – undo
1059 1059
         return $posy;
1060 1060
     }
1061 1061
 
1062
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1063
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1062
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1063
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1064 1064
     /**
1065 1065
      *  Show total to pay
1066 1066
      *
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
      */
1075 1075
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $outputlangsbis = null)
1076 1076
     {
1077
-		// phpcs:enable
1077
+        // phpcs:enable
1078 1078
         global $conf, $mysoc;
1079 1079
         $default_font_size = pdf_getPDFFontSize($outputlangs);
1080 1080
 
@@ -1336,7 +1336,7 @@  discard block
 block discarded – undo
1336 1336
         return ($tab2_top + ($tab2_hl * $index));
1337 1337
     }
1338 1338
 
1339
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1339
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1340 1340
     /**
1341 1341
      *   Show table for lines
1342 1342
      *
@@ -1450,7 +1450,7 @@  discard block
 block discarded – undo
1450 1450
         }
1451 1451
     }
1452 1452
 
1453
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1453
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1454 1454
     /**
1455 1455
      *  Show top header of page.
1456 1456
      *
@@ -1725,7 +1725,7 @@  discard block
 block discarded – undo
1725 1725
         return $top_shift;
1726 1726
     }
1727 1727
 
1728
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1728
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1729 1729
     /**
1730 1730
      *      Show footer of page. Need this->emetteur object
1731 1731
      *
@@ -1741,8 +1741,8 @@  discard block
 block discarded – undo
1741 1741
         return pdf_pagefoot($pdf, $outputlangs, 'PROPOSAL_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark);
1742 1742
     }
1743 1743
 
1744
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1745
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1744
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1745
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1746 1746
     /**
1747 1747
      *  Show area for the customer to sign
1748 1748
      *
@@ -1754,7 +1754,7 @@  discard block
 block discarded – undo
1754 1754
      */
1755 1755
     protected function _signature_area(&$pdf, $object, $posy, $outputlangs)
1756 1756
     {
1757
-		// phpcs:enable
1757
+        // phpcs:enable
1758 1758
         $default_font_size = pdf_getPDFFontSize($outputlangs);
1759 1759
         $tab_top = $posy + 4;
1760 1760
         $tab_hl = 4;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1682,7 +1682,7 @@
 block discarded – undo
1682 1682
 
1683 1683
             $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs);
1684 1684
 
1685
-            $mode =  'target';
1685
+            $mode = 'target';
1686 1686
             $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object);
1687 1687
 
1688 1688
             // Show recipient
Please login to merge, or discard this patch.
htdocs/core/modules/propale/doc/pdf_cyan.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $this->atleastonediscount = 0;
142 142
     }
143 143
 
144
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
144
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
145 145
     /**
146 146
      *  Function to build pdf onto disk
147 147
      *
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
157 157
     {
158
-		// phpcs:enable
158
+        // phpcs:enable
159 159
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
160 160
 
161 161
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -1444,7 +1444,7 @@  discard block
 block discarded – undo
1444 1444
         return ($tab2_top + ($tab2_hl * $index));
1445 1445
     }
1446 1446
 
1447
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1447
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1448 1448
     /**
1449 1449
      *   Show table for lines
1450 1450
      *
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
         }
1514 1514
     }
1515 1515
 
1516
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1516
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1517 1517
     /**
1518 1518
      *  Show top header of page.
1519 1519
      *
@@ -1803,7 +1803,7 @@  discard block
 block discarded – undo
1803 1803
         return $top_shift;
1804 1804
     }
1805 1805
 
1806
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1806
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1807 1807
     /**
1808 1808
      *      Show footer of page. Need this->emetteur object
1809 1809
      *
Please login to merge, or discard this patch.
htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
 
249 249
 
250
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
250
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
251 251
     /**
252 252
      *  Function to build PDF on disk, then output on HTTP stream.
253 253
      *
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      */
261 261
     public function write_file($arrayofrecords, $outputlangs, $srctemplatepath, $outputdir = '', $filename = 'tmp_address_sheet.pdf')
262 262
     {
263
-		// phpcs:enable
263
+        // phpcs:enable
264 264
         global $user, $conf, $langs, $mysoc, $_Avery_Labels;
265 265
 
266 266
         $this->code = $srctemplatepath;
Please login to merge, or discard this patch.
htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         // use this method in future refactoring
48 48
     }
49 49
 
50
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
50
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
51 51
     /**
52 52
      * Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0)
53 53
      * - %LOGO% is replace with company logo
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function Add_PDF_label(&$pdf, $textleft, $header, $footer, $outputlangs, $textright = '', $photo = '')
66 66
     {
67
-		// phpcs:enable
67
+        // phpcs:enable
68 68
         global $mysoc, $conf, $langs;
69 69
         global $forceimgscalewidth, $forceimgscaleheight;
70 70
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
 
226 226
 
227
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
227
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
228 228
     /**
229 229
      *  Function to build PDF on disk, then output on HTTP stream.
230 230
      *
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function write_file($arrayofrecords, $outputlangs, $srctemplatepath, $outputdir = '', $filename = 'tmp_address_sheet.pdf')
239 239
     {
240
-		// phpcs:enable
240
+        // phpcs:enable
241 241
         global $user, $conf, $langs, $mysoc, $_Avery_Labels;
242 242
 
243 243
         $this->code = $srctemplatepath;
Please login to merge, or discard this patch.
htdocs/core/modules/printsheet/modules_labels.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public $error = '';
43 43
 
44 44
 
45
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
45
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
46 46
     /**
47 47
      *  Return list of active generation modules
48 48
      *
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function liste_modeles($db, $maxfilenamelength = 0)
54 54
     {
55
-		// phpcs:enable
55
+        // phpcs:enable
56 56
         $type = 'members_labels';
57 57
         $list = array();
58 58
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
  */
80 80
 function doc_label_pdf_create($db, $arrayofrecords, $modele, $outputlangs, $outputdir = '', $template = 'standardlabel', $filename = 'tmp_address_sheet.pdf')
81 81
 {
82
-	// phpcs:enable
82
+    // phpcs:enable
83 83
     global $conf, $langs;
84 84
     $langs->load("members");
85 85
 
Please login to merge, or discard this patch.