Passed
Push — main ( 55273f...7ed502 )
by Rafael
46:12
created
htdocs/core/class/fiscalyear.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
         return $this->LibStatut($this->status, $mode);
401 401
     }
402 402
 
403
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
403
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
404 404
     /**
405 405
      *  Give a label from a status
406 406
      *
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     public function LibStatut($status, $mode = 0)
412 412
     {
413
-		// phpcs:enable
413
+        // phpcs:enable
414 414
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
415 415
             global $langs;
416 416
             //$langs->load("mymodule@mymodule");
Please login to merge, or discard this patch.
htdocs/core/class/emailsenderprofile.class.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@
 block discarded – undo
314 314
         return $this->LibStatut($this->active, $mode);
315 315
     }
316 316
 
317
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
317
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
318 318
     /**
319 319
      *  Return the label of a given status
320 320
      *
Please login to merge, or discard this patch.
htdocs/core/class/discount.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
 
417 417
 
418
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
418
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
419 419
     /**
420 420
      *  Link the discount to a particular invoice line or a particular invoice.
421 421
      *  When discount is a global discount used as an invoice line, we link using rowidline.
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
      */
428 428
     public function link_to_invoice($rowidline, $rowidinvoice)
429 429
     {
430
-		// phpcs:enable
430
+        // phpcs:enable
431 431
         // Check parameters
432 432
         if (!$rowidline && !$rowidinvoice) {
433 433
             $this->error = 'ErrorBadParameters';
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
     }
475 475
 
476 476
 
477
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
477
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
478 478
     /**
479 479
      *  Link the discount to a particular invoice line or a particular invoice.
480 480
      *  Do not call this if discount is linked to a reconcialiated invoice
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
      */
484 484
     public function unlink_invoice()
485 485
     {
486
-		// phpcs:enable
486
+        // phpcs:enable
487 487
         $sql = "UPDATE " . $this->db->prefix() . "societe_remise_except";
488 488
         if (!empty($this->discount_type)) {
489 489
             $sql .= " SET fk_invoice_supplier_line = NULL, fk_invoice_supplier = NULL";
Please login to merge, or discard this patch.
htdocs/core/class/stats.class.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
     // Here we have low level of shared code called by XxxStats.class.php
382 382
 
383 383
 
384
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
384
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
385 385
     /**
386 386
      *  Return nb of elements by year
387 387
      *
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
      */
391 391
     protected function _getNbByYear($sql)
392 392
     {
393
-		// phpcs:enable
393
+        // phpcs:enable
394 394
         $result = array();
395 395
 
396 396
         dol_syslog(get_class($this) . '::' . __FUNCTION__, LOG_DEBUG);
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         return $result;
411 411
     }
412 412
 
413
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
413
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
414 414
     /**
415 415
      *  Return nb of elements, total amount and avg amount each year
416 416
      *
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
      */
420 420
     protected function _getAllByYear($sql)
421 421
     {
422
-		// phpcs:enable
422
+        // phpcs:enable
423 423
         $result = array();
424 424
 
425 425
         dol_syslog(get_class($this) . '::' . __FUNCTION__, LOG_DEBUG);
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         return $result;
465 465
     }
466 466
 
467
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
467
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
468 468
     /**
469 469
      *     Renvoie le nombre de documents par mois pour une annee donnee
470 470
      *     Return number of documents per month for a given year
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      */
477 477
     protected function _getNbByMonth($year, $sql, $format = 0)
478 478
     {
479
-		// phpcs:enable
479
+        // phpcs:enable
480 480
         global $langs;
481 481
 
482 482
         $result = array();
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
         return $data;
523 523
     }
524 524
 
525
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
525
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
526 526
     /**
527 527
      *     Return the amount per month for a given year
528 528
      *
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
      */
534 534
     protected function _getAmountByMonth($year, $sql, $format = 0)
535 535
     {
536
-		// phpcs:enable
536
+        // phpcs:enable
537 537
         global $langs;
538 538
 
539 539
         $result = array();
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
         return $data;
580 580
     }
581 581
 
582
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
582
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
583 583
     /**
584 584
      *  Renvoie le montant moyen par mois pour une annee donnee
585 585
      *  Return the amount average par month for a given year
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
      */
592 592
     protected function _getAverageByMonth($year, $sql, $format = 0)
593 593
     {
594
-		// phpcs:enable
594
+        // phpcs:enable
595 595
         global $langs;
596 596
 
597 597
         $result = array();
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
     }
639 639
 
640 640
 
641
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
641
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
642 642
     /**
643 643
      *  Return number or total of product refs
644 644
      *
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
      */
649 649
     protected function _getAllByProduct($sql, $limit = 10)
650 650
     {
651
-		// phpcs:enable
651
+        // phpcs:enable
652 652
         global $langs;
653 653
 
654 654
         $result = array();
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
         return $result;
680 680
     }
681 681
 
682
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
682
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
683 683
     /**
684 684
      *  Returns the summed amounts per year for a given number of past years ending now
685 685
      *  @param  string  $sql    SQL
Please login to merge, or discard this patch.
htdocs/core/class/antivir.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $this->db = $db;
61 61
     }
62 62
 
63
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
63
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
64 64
     /**
65 65
      *  Scan a file with antivirus.
66 66
      *  This function runs the command defined in setup. This antivirus command must return 0 if OK.
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function dol_avscan_file($file)
73 73
     {
74
-		// phpcs:enable
74
+        // phpcs:enable
75 75
         global $conf;
76 76
 
77 77
         if (preg_match('/\.virus$/i', $file)) {
Please login to merge, or discard this patch.
htdocs/core/class/commonstickergenerator.class.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public $code; // Code of format
72 72
 
73
-	// phpcs:disable PEAR.NamingConventions.ValidVariableName.PublicUnderscore
73
+    // phpcs:disable PEAR.NamingConventions.ValidVariableName.PublicUnderscore
74 74
     // protected
75 75
     // Name of stick
76 76
     protected $_Avery_Name = '';
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @var array
110 110
      */
111 111
     public $_Avery_Labels;
112
-	// phpcs:enable
112
+    // phpcs:enable
113 113
 
114 114
     /**
115 115
      *  Constructor
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $this->db = $db;
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 on disk, then output on HTTP stream.
127 127
      *
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *  @return int                             1=OK, 0=KO
133 133
      */
134 134
     abstract public function write_file($arrayofrecords, $outputlangs, $srctemplatepath, $outputdir = '');
135
-	// phpcs:enable
135
+    // phpcs:enable
136 136
 
137 137
     /**
138 138
      * Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0)
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     abstract public function addSticker(&$pdf, $outputlangs, $param);
146 146
 
147
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
147
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
148 148
     /**
149 149
      * Methode qui permet de modifier la taille des caracteres
150 150
      * Cela modiera aussi l'espace entre chaque ligne
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function Set_Char_Size(&$pdf, $pt)
157 157
     {
158
-		// phpcs:enable
158
+        // phpcs:enable
159 159
         if ($pt > 3) {
160 160
             $this->_Char_Size = $pt;
161 161
             $this->_Line_Height = $this->_Get_Height_Chars($pt);
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
         }
164 164
     }
165 165
 
166
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
167
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
166
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
167
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
168 168
     /**
169 169
      * protected Print dot line
170 170
      *
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     protected function _Pointille(&$pdf, $x1 = 0, $y1 = 0, $x2 = 210, $y2 = 297, $epaisseur = 1, $nbPointilles = 15)
181 181
     {
182
-		// phpcs:enable
182
+        // phpcs:enable
183 183
         $pdf->SetLineWidth($epaisseur);
184 184
         $length = abs($x1 - $x2);
185 185
         $hauteur = abs($y1 - $y2);
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
         }
211 211
     }
212 212
 
213
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
214
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
213
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
214
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
215 215
     /**
216 216
      * protected Function realisant une croix aux 4 coins des cartes
217 217
      *
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     protected function _Croix(&$pdf, $x1 = 0, $y1 = 0, $x2 = 210, $y2 = 297, $epaisseur = 1, $taille = 4)
230 230
     {
231
-		// phpcs:enable
231
+        // phpcs:enable
232 232
         $pdf->SetDrawColor(192, 192, 192);
233 233
 
234 234
         $pdf->SetLineWidth($epaisseur);
@@ -271,8 +271,8 @@  discard block
 block discarded – undo
271 271
         return $value;
272 272
     }
273 273
 
274
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
275
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
274
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
275
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
276 276
     /**
277 277
      * protected Give the height for a char size given.
278 278
      *
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     protected function _Get_Height_Chars($pt)
283 283
     {
284
-		// phpcs:enable
284
+        // phpcs:enable
285 285
         // Array for link between height of characters and space between lines
286 286
         $_Table_Hauteur_Chars = array(6 => 2, 7 => 2.5, 8 => 3, 9 => 3.5, 10 => 4, 11 => 6, 12 => 7, 13 => 8, 14 => 9, 15 => 10);
287 287
         if (in_array($pt, array_keys($_Table_Hauteur_Chars))) {
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
         }
292 292
     }
293 293
 
294
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
295
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
294
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
295
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
296 296
     /**
297 297
      * protected Set format
298 298
      *
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     protected function _Set_Format(&$pdf, $format)
304 304
     {
305
-		// phpcs:enable
305
+        // phpcs:enable
306 306
         $this->_Metric = $format['metric'];
307 307
         $this->_Avery_Name = $format['name'];
308 308
         $this->_Avery_Code = empty($format['code']) ? '' : $format['code'];
Please login to merge, or discard this patch.
htdocs/core/class/extralanguages.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
 
71
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
71
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
72 72
     /**
73 73
      *  Load array this->attributes with list of fields per object that need an alternate translation. The object and field must be managed with
74 74
      *  the widgetForTranslation() method.
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function fetch_name_extralanguages($elementtype, $forceload = false)
83 83
     {
84
-		// phpcs:enable
84
+        // phpcs:enable
85 85
         global $conf;
86 86
 
87 87
         if (empty($elementtype)) {
Please login to merge, or discard this patch.
htdocs/core/class/CSMSFile.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     }
223 223
 
224 224
 
225
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
225
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
226 226
     /**
227 227
      *  Write content of a SendSms request into a dump file (mode = all)
228 228
      *  Used for debugging.
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function dump_sms()
233 233
     {
234
-		// phpcs:enable
234
+        // phpcs:enable
235 235
         global $conf, $dolibarr_main_data_root;
236 236
 
237 237
         if (@is_writable($dolibarr_main_data_root)) {   // Avoid fatal error on fopen with open_basedir
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         }
253 253
     }
254 254
 
255
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
255
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
256 256
     /**
257 257
      *  Write content of a SendSms result into a dump file (mode = all)
258 258
      *  Used for debugging.
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public function dump_sms_result($result)
264 264
     {
265
-		// phpcs:enable
265
+        // phpcs:enable
266 266
         global $dolibarr_main_data_root;
267 267
 
268 268
         if (@is_writable($dolibarr_main_data_root)) {    // Avoid fatal error on fopen with open_basedir
Please login to merge, or discard this patch.
htdocs/core/class/canvas.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         //print ' => template_dir='.$this->template_dir.'<br>';
140 140
     }
141 141
 
142
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
142
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
143 143
     /**
144 144
      *  Shared method for canvas to assign values for templates
145 145
      *
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function assign_values(&$action = 'view', $id = 0, $ref = '')
152 152
     {
153
-		// phpcs:enable
153
+        // phpcs:enable
154 154
         if (is_object($this->control) && method_exists($this->control, 'assign_values')) {
155 155
             $this->control->assign_values($action, $id, $ref);
156 156
         }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         }
177 177
     }
178 178
 
179
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
179
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
180 180
     /**
181 181
      *  Display a canvas page. This will include the template for output.
182 182
      *  Variables used by templates may have been defined or loaded before into the assign_values function.
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     public function display_canvas($action)
188 188
     {
189
-		// phpcs:enable
189
+        // phpcs:enable
190 190
         global $db, $conf, $langs, $user, $canvas;
191 191
         global $form, $formfile;
192 192
 
Please login to merge, or discard this patch.