Passed
Push — GENERAL_BUG_REVIEW_240911 ( 776d89...c757bd )
by Rafael
50:33
created
public/htdocs/core/modules/societe/mod_codecompta_aquarium.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     }
148 148
 
149 149
 
150
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
150
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
151 151
     /**
152 152
      *  Set accountancy account code for a third party into this->code
153 153
      *
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function get_code($db, $societe, $type = '')
160 160
     {
161
-		// phpcs:enable
161
+        // phpcs:enable
162 162
         global $conf;
163 163
 
164 164
         $i = 0;
Please login to merge, or discard this patch.
public/htdocs/core/modules/workstation/modules_workstation.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 ModelePDFWorkstation 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 = 'workstation';
55 55
         $list = array();
56 56
 
Please login to merge, or discard this patch.
public/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.
public/htdocs/core/modules/propale/doc/doc_generic_proposal_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
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
         $maxfilesizearray = getMaxFileSizeArray();
211 211
         $maxmin = $maxfilesizearray['maxmin'];
212 212
         if ($maxmin > 0) {
213
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
213
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
214 214
         }
215 215
         $texte .= ' <input type="file" name="uploadfile">';
216 216
         $texte .= '<input type="hidden" value="PROPALE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/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.
public/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.
public/htdocs/core/modules/cheque/doc/pdf_blochet.class.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->tab_height = 200; //$this->line_height * $this->line_per_page;
113 113
     }
114 114
 
115
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
115
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
116 116
     /**
117 117
      *  Fonction to generate document on disk
118 118
      *
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function write_file($object, $_dir, $number, $outputlangs)
126 126
     {
127
-		// phpcs:enable
127
+        // phpcs:enable
128 128
         global $user, $conf, $langs, $hookmanager;
129 129
 
130 130
         if (!is_object($outputlangs)) {
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     }
246 246
 
247 247
 
248
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
248
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
249 249
     /**
250 250
      *  Generate Header
251 251
      *
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     public function Header(&$pdf, $page, $pages, $outputlangs)
259 259
     {
260
-		// phpcs:enable
260
+        // phpcs:enable
261 261
         global $langs;
262 262
         $default_font_size = pdf_getPDFFontSize($outputlangs);
263 263
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 
355 355
 
356
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
356
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
357 357
     /**
358 358
      *  Output array
359 359
      *
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     public function Body(&$pdf, $pagenb, $pages, $outputlangs)
367 367
     {
368
-		// phpcs:enable
368
+        // phpcs:enable
369 369
         // x=10 - Num
370 370
         // x=30 - Banque
371 371
         // x=100 - Emetteur
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         }
425 425
     }
426 426
 
427
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
427
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
428 428
     /**
429 429
      *  Show footer of page. Need this->emetteur object
430 430
      *
Please login to merge, or discard this patch.
public/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         return $texte;
216 216
     }
217 217
 
218
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
218
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
219 219
     /**
220 220
      *  Function to build a document on disk using the generic odt module.
221 221
      *
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
231 231
     {
232
-		// phpcs:enable
232
+        // phpcs:enable
233 233
         global $user, $langs, $conf, $mysoc, $hookmanager;
234 234
 
235 235
         if (empty($srctemplatepath)) {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
         return -1;
439 439
     }
440 440
 
441
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
441
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
442 442
     /**
443 443
      * get substitution array for object
444 444
      *
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      */
450 450
     public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object')
451 451
     {
452
-		// phpcs:enable
452
+        // phpcs:enable
453 453
         if (!$object instanceof User) {
454 454
             dol_syslog("Expected User object, got " . gettype($object), LOG_ERR);
455 455
             return array();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
         $maxfilesizearray = getMaxFileSizeArray();
199 199
         $maxmin = $maxfilesizearray['maxmin'];
200 200
         if ($maxmin > 0) {
201
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
201
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
202 202
         }
203 203
         $texte .= ' <input type="file" name="uploadfile">';
204 204
         $texte .= '<input type="hidden" value="USER_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/mailings/thirdparties.modules.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
     }
57 57
 
58 58
 
59
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
59
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
60 60
     /**
61 61
      *    This is the main function that returns the array of emails
62 62
      *
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function add_to_target($mailing_id)
67 67
     {
68
-		// phpcs:enable
68
+        // phpcs:enable
69 69
         global $conf, $langs;
70 70
 
71 71
         $cibles = array();
Please login to merge, or discard this patch.