Passed
Pull Request — dev (#14)
by Rafael
51:23
created
Dolibarr/Code/Core/Classes/FormAdmin.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->db = $db;
54 54
     }
55 55
 
56
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
56
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
57 57
     /**
58 58
      *  Return html select list with available languages (key='en_US', value='United States' for example)
59 59
      *
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function select_language($selected = '', $htmlname = 'lang_id', $showauto = 0, $filter = array(), $showempty = '', $showwarning = 0, $disabled = 0, $morecss = '', $showcode = 0, $forcecombo = 0, $multiselect = 0, $onlykeys = array(), $mainlangonly = 0)
76 76
     {
77
-		// phpcs:enable
77
+        // phpcs:enable
78 78
         global $langs;
79 79
 
80 80
         if (getDolGlobalString('MAIN_DEFAULT_LANGUAGE_FILTER')) {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         return $out;
180 180
     }
181 181
 
182
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
182
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
183 183
     /**
184 184
      *    Return list of available menus (eldy_backoffice, ...)
185 185
      *
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function select_menu($selected, $htmlname, $dirmenuarray, $moreattrib = '')
193 193
     {
194
-		// phpcs:enable
194
+        // phpcs:enable
195 195
         global $langs, $conf;
196 196
 
197 197
         // Clean parameters
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         return;
298 298
     }
299 299
 
300
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
300
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
301 301
     /**
302 302
      *  Return combo list of available menu families
303 303
      *
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      */
309 309
     public function select_menu_families($selected, $htmlname, $dirmenuarray)
310 310
     {
311
-		// phpcs:enable
311
+        // phpcs:enable
312 312
         global $langs, $conf;
313 313
 
314 314
         //$expdevmenu=array('smartphone_backoffice.php','smartphone_frontoffice.php');  // Menu to disable if $conf->global->MAIN_FEATURES_LEVEL is not set
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     }
376 376
 
377 377
 
378
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
378
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
379 379
     /**
380 380
      *  Return a HTML select list of timezones
381 381
      *
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      */
386 386
     public function select_timezone($selected, $htmlname)
387 387
     {
388
-		// phpcs:enable
388
+        // phpcs:enable
389 389
         print '<select class="flat" id="' . $htmlname . '" name="' . $htmlname . '">';
390 390
         print '<option value="-1">&nbsp;</option>';
391 391
 
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 
429 429
 
430 430
 
431
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
431
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
432 432
     /**
433 433
      *  Return html select list with available languages (key='en_US', value='United States' for example)
434 434
      *
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
      */
442 442
     public function select_paper_format($selected = '', $htmlname = 'paperformat_id', $filter = '', $showempty = 0, $forcecombo = 0)
443 443
     {
444
-		// phpcs:enable
444
+        // phpcs:enable
445 445
         global $langs;
446 446
 
447 447
         $langs->load("dict");
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/CommonInvoice.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
     }
537 537
 
538 538
 
539
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
539
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
540 540
     /**
541 541
      *  Return if an invoice can be deleted
542 542
      *  Rule is:
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
      */
553 553
     public function is_erasable()
554 554
     {
555
-		// phpcs:enable
555
+        // phpcs:enable
556 556
 
557 557
         // We check if invoice is a temporary number (PROVxxxx)
558 558
         $tmppart = substr($this->ref, 1, 4);
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
         return $this->LibStatut($this->paye, $this->statut, $mode, $alreadypaid, $this->type);
779 779
     }
780 780
 
781
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
781
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
782 782
     /**
783 783
      *  Return label of a status
784 784
      *
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
      */
792 792
     public function LibStatut($paye, $status, $mode = 0, $alreadypaid = -1, $type = -1)
793 793
     {
794
-		// phpcs:enable
794
+        // phpcs:enable
795 795
         global $langs, $hookmanager;
796 796
         $langs->load('bills');
797 797
 
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
         return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode);
862 862
     }
863 863
 
864
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
864
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
865 865
     /**
866 866
      *  Returns an invoice payment deadline based on the invoice settlement
867 867
      *  conditions and billing date.
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
      */
872 872
     public function calculate_date_lim_reglement($cond_reglement = 0)
873 873
     {
874
-		// phpcs:enable
874
+        // phpcs:enable
875 875
         if (!$cond_reglement) {
876 876
             $cond_reglement = $this->cond_reglement_code;
877 877
         }
@@ -957,7 +957,7 @@  discard block
 block discarded – undo
957 957
         return $datelim;
958 958
     }
959 959
 
960
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
960
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
961 961
     /**
962 962
      *  Create a withdrawal request for a direct debit order or a credit transfer order.
963 963
      *  Use the remain to pay excluding all existing open direct debit requests.
@@ -971,7 +971,7 @@  discard block
 block discarded – undo
971 971
      */
972 972
     public function demande_prelevement($fuser, $amount = 0, $type = 'direct-debit', $sourcetype = 'facture', $checkduplicateamongall = 0)
973 973
     {
974
-		// phpcs:enable
974
+        // phpcs:enable
975 975
         global $conf;
976 976
 
977 977
         $error = 0;
@@ -1624,7 +1624,7 @@  discard block
 block discarded – undo
1624 1624
         }
1625 1625
     }
1626 1626
 
1627
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1627
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1628 1628
     /**
1629 1629
      *  Remove a direct debit request or a credit transfer request
1630 1630
      *
@@ -1634,7 +1634,7 @@  discard block
 block discarded – undo
1634 1634
      */
1635 1635
     public function demande_prelevement_delete($fuser, $did)
1636 1636
     {
1637
-		// phpcs:enable
1637
+        // phpcs:enable
1638 1638
         $sql = 'DELETE FROM ' . $this->db->prefix() . 'prelevement_demande';
1639 1639
         $sql .= ' WHERE rowid = ' . ((int) $did);
1640 1640
         $sql .= ' AND traite = 0';
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/FormTicket.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1308,7 +1308,7 @@  discard block
 block discarded – undo
1308 1308
         print ajax_combobox('select' . $htmlname);
1309 1309
     }
1310 1310
 
1311
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1311
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1312 1312
     /**
1313 1313
      * Clear list of attached files in send mail form (also stored in session)
1314 1314
      *
@@ -1316,7 +1316,7 @@  discard block
 block discarded – undo
1316 1316
      */
1317 1317
     public function clear_attached_files()
1318 1318
     {
1319
-		// phpcs:enable
1319
+        // phpcs:enable
1320 1320
         global $conf, $user;
1321 1321
         require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/files.lib.php';
1322 1322
 
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/DiscountAbsolute.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.
Dolibarr/Code/Core/Classes/Fiscalyear.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.
Dolibarr/Code/Core/Classes/TimeSpent.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
         return $this->LibStatut($this->status, $mode);
848 848
     }
849 849
 
850
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
850
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
851 851
     /**
852 852
      *  Return the status
853 853
      *
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
      */
858 858
     public function LibStatut($status, $mode = 0)
859 859
     {
860
-		// phpcs:enable
860
+        // phpcs:enable
861 861
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
862 862
             global $langs;
863 863
             //$langs->load("timespent@timespent");
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/DolEditor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         }
118 118
     }
119 119
 
120
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
120
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
121 121
     /**
122 122
      *  Output edit area inside the HTML stream.
123 123
      *  Output depends on this->tool (fckeditor, ckeditor, textarea, ...)
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function Create($noprint = 0, $morejs = '', $disallowAnyContent = true, $titlecontent = '', $option = '', $moreparam = '', $morecss = '')
135 135
     {
136
-		// phpcs:enable
136
+        // phpcs:enable
137 137
         global $conf, $langs;
138 138
 
139 139
         $fullpage = false;
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/FormAccounting.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->db = $db;
72 72
     }
73 73
 
74
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
74
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
75 75
     /**
76 76
      * Return list of journals with label by nature
77 77
      *
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function select_journal($selectid, $htmlname = 'journal', $nature = 0, $showempty = 0, $select_in = 0, $select_out = 0, $morecss = 'maxwidth300 maxwidthonsmartphone', $usecache = '', $disabledajaxcombo = 0)
90 90
     {
91
-		// phpcs:enable
91
+        // phpcs:enable
92 92
         global $conf, $langs;
93 93
 
94 94
         $out = '';
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         return $out;
152 152
     }
153 153
 
154
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
154
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
155 155
     /**
156 156
      * Return list of journals with label by nature
157 157
      *
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function multi_select_journal($selectedIds = array(), $htmlname = 'journal', $nature = 0, $showempty = 0, $select_in = 0, $select_out = 0, $morecss = '', $usecache = '', $disabledajaxcombo = 0)
170 170
     {
171
-		// phpcs:enable
171
+        // phpcs:enable
172 172
         global $conf, $langs;
173 173
 
174 174
         $out = '';
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         return $out;
231 231
     }
232 232
 
233
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
233
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
234 234
     /**
235 235
      *  Return list of accounting category.
236 236
      *  Use mysoc->country_id or mysoc->country_code so they must be defined.
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function select_accounting_category($selected = 0, $htmlname = 'account_category', $useempty = 0, $maxlen = 0, $help = 1, $allcountries = 0)
247 247
     {
248
-		// phpcs:enable
248
+        // phpcs:enable
249 249
         global $langs, $mysoc;
250 250
 
251 251
         if (empty($mysoc->country_id) && empty($mysoc->country_code) && empty($allcountries)) {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
         return $out;
323 323
     }
324 324
 
325
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
325
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
326 326
     /**
327 327
      * Return select filter with date of transaction
328 328
      *
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     public function select_bookkeeping_importkey($htmlname = 'importkey', $selectedkey = '')
334 334
     {
335
-		// phpcs:enable
335
+        // phpcs:enable
336 336
         $options = array();
337 337
 
338 338
         $sql = "SELECT DISTINCT import_key FROM " . $this->db->prefix() . "accounting_bookkeeping";
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         return Form::selectarray($htmlname, $options, $selectedkey);
356 356
     }
357 357
 
358
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
358
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
359 359
     /**
360 360
      * Return list of accounts with label by chart of accounts
361 361
      *
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      */
373 373
     public function select_account($selectid, $htmlname = 'account', $showempty = 0, $event = array(), $select_in = 0, $select_out = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $active = '1')
374 374
     {
375
-		// phpcs:enable
375
+        // phpcs:enable
376 376
         global $conf, $langs;
377 377
 
378 378
         require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/accounting.lib.php';
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
         return $out;
467 467
     }
468 468
 
469
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
469
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
470 470
     /**
471 471
      * Return list of auxiliary accounts. Cumulate list from customers, suppliers and users.
472 472
      *
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
      */
481 481
     public function select_auxaccount($selectid, $htmlname = 'account_num_aux', $showempty = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $labelhtmlname = '')
482 482
     {
483
-		// phpcs:enable
483
+        // phpcs:enable
484 484
         global $conf;
485 485
 
486 486
         $aux_account = array();
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
         return $out;
562 562
     }
563 563
 
564
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
564
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
565 565
     /**
566 566
      * Return HTML combo list of years existing into book keepping
567 567
      *
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
      */
574 574
     public function selectyear_accountancy_bookkepping($selected = '', $htmlname = 'yearid', $useempty = 0, $output_format = 'html')
575 575
     {
576
-		// phpcs:enable
576
+        // phpcs:enable
577 577
         global $conf;
578 578
 
579 579
         $out_array = array();
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Traits/CommonIncoterm.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public $location_incoterms;
48 48
 
49 49
 
50
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
50
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
51 51
     /**
52 52
      *    Return incoterms information
53 53
      *    TODO Use a cache for label get
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function display_incoterms()
58 58
     {
59
-		// phpcs:enable
59
+        // phpcs:enable
60 60
         $out = '';
61 61
 
62 62
         $this->label_incoterms = '';
Please login to merge, or discard this patch.