Passed
Push — dev ( 2f56d7...ce578a )
by Rafael
50:32
created
Dolibarr/Code/Core/Classes/SMTPs.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
      * Message Sensitivity
142 142
      */
143 143
     private $_arySensitivity = array(false,
144
-                                  'Personal',
145
-                                  'Private',
146
-                                  'Company Confidential');
144
+                                    'Personal',
145
+                                    'Private',
146
+                                    'Company Confidential');
147 147
 
148 148
     /**
149 149
      * Message Sensitivity
@@ -171,12 +171,12 @@  discard block
 block discarded – undo
171 171
      * Content-Transfer-Encoding
172 172
      */
173 173
     private $_smtpsTransEncodeTypes = array('7bit', // Simple 7-bit ASCII
174
-                                         '8bit', // 8-bit coding with line termination characters
175
-                                         'base64', // 3 octets encoded into 4 sextets with offset
176
-                                         'binary', // Arbitrary binary stream
177
-                                         'mac-binhex40', // Macintosh binary to hex encoding
178
-                                         'quoted-printable', // Mostly 7-bit, with 8-bit characters encoded as "=HH"
179
-                                         'uuencode'); // UUENCODE encoding
174
+                                            '8bit', // 8-bit coding with line termination characters
175
+                                            'base64', // 3 octets encoded into 4 sextets with offset
176
+                                            'binary', // Arbitrary binary stream
177
+                                            'mac-binhex40', // Macintosh binary to hex encoding
178
+                                            'quoted-printable', // Mostly 7-bit, with 8-bit characters encoded as "=HH"
179
+                                            'uuencode'); // UUENCODE encoding
180 180
 
181 181
     /**
182 182
      * Content-Transfer-Encoding
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
         $_aryToList = $this->getTo();
402 402
     }
403 403
 
404
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
404
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
405 405
     /**
406 406
      * Attempt a connection to mail server
407 407
      *
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      */
410 410
     private function _server_connect()
411 411
     {
412
-		// phpcs:enable
412
+        // phpcs:enable
413 413
         // Default return value
414 414
         $_retVal = true;
415 415
 
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
         return $_retVal;
480 480
     }
481 481
 
482
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
482
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
483 483
     /**
484 484
      * Attempt mail server authentication for a secure connection
485 485
      *
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      */
488 488
     private function _server_authenticate()
489 489
     {
490
-		// phpcs:enable
490
+        // phpcs:enable
491 491
         global $conf;
492 492
 
493 493
         require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/geturl.lib.php';
@@ -1264,7 +1264,7 @@  discard block
 block discarded – undo
1264 1264
         $this->_msgRecipients = $aryHost;
1265 1265
     }
1266 1266
 
1267
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1267
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1268 1268
     /**
1269 1269
      * Returns an array of the various parts of an email address
1270 1270
      * This assumes a well formed address:
@@ -1283,7 +1283,7 @@  discard block
 block discarded – undo
1283 1283
      */
1284 1284
     private function _strip_email($_strAddr)
1285 1285
     {
1286
-		// phpcs:enable
1286
+        // phpcs:enable
1287 1287
         $_aryEmail = array();
1288 1288
         // Keep the original
1289 1289
         $_aryEmail['org'] = $_strAddr;
@@ -1320,7 +1320,7 @@  discard block
 block discarded – undo
1320 1320
         return $_aryEmail;
1321 1321
     }
1322 1322
 
1323
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1323
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1324 1324
     /**
1325 1325
      * Returns an array of bares addresses for use with 'RCPT TO:'
1326 1326
      * This is a "build as you go" method. Each time this method is called
@@ -1330,7 +1330,7 @@  discard block
 block discarded – undo
1330 1330
      */
1331 1331
     public function get_RCPT_list()
1332 1332
     {
1333
-		// phpcs:enable
1333
+        // phpcs:enable
1334 1334
         /**
1335 1335
          * An array of bares addresses for use with 'RCPT TO:'
1336 1336
          */
@@ -1349,7 +1349,7 @@  discard block
 block discarded – undo
1349 1349
         return $_RCPT_list;
1350 1350
     }
1351 1351
 
1352
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1352
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1353 1353
     /**
1354 1354
      * Returns an array of addresses for a specific type; TO, CC or BCC
1355 1355
      *
@@ -1358,7 +1358,7 @@  discard block
 block discarded – undo
1358 1358
      */
1359 1359
     public function get_email_list($_which = null)
1360 1360
     {
1361
-		// phpcs:enable
1361
+        // phpcs:enable
1362 1362
         // We need to know which address segment to pull
1363 1363
         if ($_which) {
1364 1364
             // Make sure we have addresses to process
@@ -1971,7 +1971,7 @@  discard block
 block discarded – undo
1971 1971
         return '';
1972 1972
     }
1973 1973
 
1974
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1974
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1975 1975
     /**
1976 1976
      * This function has been modified as provided by SirSir to allow multiline responses when
1977 1977
      * using SMTP Extensions
@@ -1984,7 +1984,7 @@  discard block
 block discarded – undo
1984 1984
      */
1985 1985
     public function server_parse($socket, $response)
1986 1986
     {
1987
-		// phpcs:enable
1987
+        // phpcs:enable
1988 1988
         /**
1989 1989
          * Returns constructed SELECT Object string or boolean upon failure
1990 1990
          * Default value is set at true
@@ -2016,7 +2016,7 @@  discard block
 block discarded – undo
2016 2016
         return $_retVal;
2017 2017
     }
2018 2018
 
2019
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2019
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2020 2020
     /**
2021 2021
      * Send str
2022 2022
      *
@@ -2027,7 +2027,7 @@  discard block
 block discarded – undo
2027 2027
      */
2028 2028
     public function socket_send_str($_strSend, $_returnCode = null, $CRLF = "\r\n")
2029 2029
     {
2030
-		// phpcs:enable
2030
+        // phpcs:enable
2031 2031
         if ($this->_debug) {
2032 2032
             $this->log .= $_strSend; // @CHANGE LDR for log
2033 2033
         }
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/Interfaces.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $this->db = $db;
60 60
     }
61 61
 
62
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
62
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
63 63
     /**
64 64
      *   Function called when a Dolibarr business event occurs
65 65
      *   This function call all qualified triggers.
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function run_triggers($action, $object, $user, $langs, $conf)
75 75
     {
76
-		// phpcs:enable
76
+        // phpcs:enable
77 77
 
78 78
         if (getDolGlobalInt('MAIN_TRIGGER_DEBUG')) {
79 79
             // This his too much verbose, enabled if const enabled only
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/FormSms.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $this->withbodyreadonly = 0;
123 123
     }
124 124
 
125
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
125
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
126 126
     /**
127 127
      *  Show the form to input an sms.
128 128
      *
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function show_form($morecss = 'titlefield', $showform = 1)
134 134
     {
135
-		// phpcs:enable
135
+        // phpcs:enable
136 136
         global $conf, $langs, $form;
137 137
 
138 138
         if (!is_object($form)) {
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/FormActions.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
 
56
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
56
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
57 57
     /**
58 58
      *  Show list of action status
59 59
      *
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function form_select_status_action($formname, $selected, $canedit = 1, $htmlname = 'complete', $showempty = 0, $onlyselect = 0, $morecss = 'maxwidth100')
70 70
     {
71
-		// phpcs:enable
71
+        // phpcs:enable
72 72
         global $langs, $conf;
73 73
 
74 74
         $listofstatus = array(
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     }
366 366
 
367 367
 
368
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
368
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
369 369
     /**
370 370
      *  Output html select list of type of event
371 371
      *
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      */
382 382
     public function select_type_actions($selected = '', $htmlname = 'actioncode', $excludetype = '', $onlyautoornot = 0, $hideinfohelp = 0, $multiselect = 0, $nooutput = 0, $morecss = 'minwidth300')
383 383
     {
384
-		// phpcs:enable
384
+        // phpcs:enable
385 385
         global $langs, $user, $form;
386 386
 
387 387
         if (!is_object($form)) {
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/CMailFile.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
         return '=?' . $conf->file->character_set_client . '?B?' . base64_encode($stringtoencode) . '?=';
1338 1338
     }
1339 1339
 
1340
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1340
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1341 1341
     /**
1342 1342
      * Read a file on disk and return encoded content for emails (mode = 'mail')
1343 1343
      *
@@ -1346,7 +1346,7 @@  discard block
 block discarded – undo
1346 1346
      */
1347 1347
     private function _encode_file($sourcefile)
1348 1348
     {
1349
-		// phpcs:enable
1349
+        // phpcs:enable
1350 1350
         $newsourcefile = dol_osencode($sourcefile);
1351 1351
 
1352 1352
         if (is_readable($newsourcefile)) {
@@ -1361,7 +1361,7 @@  discard block
 block discarded – undo
1361 1361
     }
1362 1362
 
1363 1363
 
1364
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1364
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1365 1365
     /**
1366 1366
      *  Write content of a SMTP request into a dump file (mode = all)
1367 1367
      *  Used for debugging.
@@ -1371,7 +1371,7 @@  discard block
 block discarded – undo
1371 1371
      */
1372 1372
     public function dump_mail()
1373 1373
     {
1374
-		// phpcs:enable
1374
+        // phpcs:enable
1375 1375
         global $dolibarr_main_data_root;
1376 1376
 
1377 1377
         if (@is_writable($dolibarr_main_data_root)) {   // Avoid fatal error on fopen with open_basedir
@@ -1402,7 +1402,7 @@  discard block
 block discarded – undo
1402 1402
         }
1403 1403
     }
1404 1404
 
1405
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1405
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1406 1406
     /**
1407 1407
      *  Save content if mail is in error
1408 1408
      *  Used for debugging.
@@ -1499,7 +1499,7 @@  discard block
 block discarded – undo
1499 1499
     }
1500 1500
 
1501 1501
 
1502
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1502
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1503 1503
     /**
1504 1504
      * Create SMTP headers (mode = 'mail')
1505 1505
      *
@@ -1507,7 +1507,7 @@  discard block
 block discarded – undo
1507 1507
      */
1508 1508
     public function write_smtpheaders()
1509 1509
     {
1510
-		// phpcs:enable
1510
+        // phpcs:enable
1511 1511
         $out = "";
1512 1512
         $host = dol_getprefix('email');
1513 1513
 
@@ -1571,7 +1571,7 @@  discard block
 block discarded – undo
1571 1571
     }
1572 1572
 
1573 1573
 
1574
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1574
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1575 1575
     /**
1576 1576
      * Create header MIME (mode = 'mail')
1577 1577
      *
@@ -1581,7 +1581,7 @@  discard block
 block discarded – undo
1581 1581
      */
1582 1582
     public function write_mimeheaders($filename_list, $mimefilename_list)
1583 1583
     {
1584
-		// phpcs:enable
1584
+        // phpcs:enable
1585 1585
         $mimedone = 0;
1586 1586
         $out = "";
1587 1587
 
@@ -1601,7 +1601,7 @@  discard block
 block discarded – undo
1601 1601
         return $out;
1602 1602
     }
1603 1603
 
1604
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1604
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1605 1605
     /**
1606 1606
      * Return email content (mode = 'mail')
1607 1607
      *
@@ -1610,7 +1610,7 @@  discard block
 block discarded – undo
1610 1610
      */
1611 1611
     public function write_body($msgtext)
1612 1612
     {
1613
-		// phpcs:enable
1613
+        // phpcs:enable
1614 1614
         global $conf;
1615 1615
 
1616 1616
         $out = '';
@@ -1694,7 +1694,7 @@  discard block
 block discarded – undo
1694 1694
         return $out;
1695 1695
     }
1696 1696
 
1697
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1697
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1698 1698
     /**
1699 1699
      * Attach file to email (mode = 'mail')
1700 1700
      *
@@ -1706,7 +1706,7 @@  discard block
 block discarded – undo
1706 1706
      */
1707 1707
     private function write_files($filename_list, $mimetype_list, $mimefilename_list, $cidlist)
1708 1708
     {
1709
-		// phpcs:enable
1709
+        // phpcs:enable
1710 1710
         $out = '';
1711 1711
 
1712 1712
         $filename_list_size = count($filename_list);
@@ -1745,7 +1745,7 @@  discard block
 block discarded – undo
1745 1745
     }
1746 1746
 
1747 1747
 
1748
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1748
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1749 1749
     /**
1750 1750
      * Attach an image to email (mode = 'mail')
1751 1751
      *
@@ -1754,7 +1754,7 @@  discard block
 block discarded – undo
1754 1754
      */
1755 1755
     public function write_images($images_list)
1756 1756
     {
1757
-		// phpcs:enable
1757
+        // phpcs:enable
1758 1758
         $out = '';
1759 1759
 
1760 1760
         if (is_array($images_list)) {
@@ -1776,7 +1776,7 @@  discard block
 block discarded – undo
1776 1776
     }
1777 1777
 
1778 1778
 
1779
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1779
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1780 1780
     /**
1781 1781
      * Try to create a socket connection
1782 1782
      *
@@ -1786,7 +1786,7 @@  discard block
 block discarded – undo
1786 1786
      */
1787 1787
     public function check_server_port($host, $port)
1788 1788
     {
1789
-		// phpcs:enable
1789
+        // phpcs:enable
1790 1790
         global $conf;
1791 1791
 
1792 1792
         $_retVal = 0;
@@ -1857,7 +1857,7 @@  discard block
 block discarded – undo
1857 1857
         return $_retVal;
1858 1858
     }
1859 1859
 
1860
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1860
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1861 1861
     /**
1862 1862
      * This function has been modified as provided by SirSir to allow multiline responses when
1863 1863
      * using SMTP Extensions.
@@ -1868,7 +1868,7 @@  discard block
 block discarded – undo
1868 1868
      */
1869 1869
     public function server_parse($socket, $response)
1870 1870
     {
1871
-		// phpcs:enable
1871
+        // phpcs:enable
1872 1872
         $_retVal = true; // Indicates if Object was created or not
1873 1873
         $server_response = '';
1874 1874
 
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/CommonDocGenerator.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     }
194 194
 
195 195
 
196
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
196
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
197 197
     /**
198 198
      * Define array with couple substitution key => substitution value
199 199
      *
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function get_substitutionarray_user($user, $outputlangs)
205 205
     {
206
-		// phpcs:enable
206
+        // phpcs:enable
207 207
         global $conf, $extrafields;
208 208
 
209 209
         $logotouse = $conf->user->dir_output . '/' . get_exdir(0, 0, 0, 0, $user, 'user') . 'photos/' . getImageFileNameForSize($user->photo, '_small');
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     }
290 290
 
291 291
 
292
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
292
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
293 293
     /**
294 294
      * Define array with couple substitution key => substitution value
295 295
      *
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function get_substitutionarray_mysoc($mysoc, $outputlangs)
301 301
     {
302
-		// phpcs:enable
302
+        // phpcs:enable
303 303
         global $conf;
304 304
 
305 305
         if (empty($mysoc->forme_juridique) && !empty($mysoc->forme_juridique_code)) {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
     }
347 347
 
348 348
 
349
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
349
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
350 350
     /**
351 351
      * Define array with couple substitution key => substitution value
352 352
      * For example {company_name}, {company_name_alias}
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      */
359 359
     public function get_substitutionarray_thirdparty($object, $outputlangs, $array_key = 'company')
360 360
     {
361
-		// phpcs:enable
361
+        // phpcs:enable
362 362
         global $extrafields;
363 363
 
364 364
         if (empty($object->country) && !empty($object->country_code)) {
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         return $array_thirdparty;
413 413
     }
414 414
 
415
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
415
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
416 416
     /**
417 417
      * Define array with couple substitution key => substitution value
418 418
      *
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
      */
424 424
     public function get_substitutionarray_contact($object, $outputlangs, $array_key = 'object')
425 425
     {
426
-		// phpcs:enable
426
+        // phpcs:enable
427 427
         global $conf, $extrafields;
428 428
 
429 429
         if (empty($object->country) && !empty($object->country_code)) {
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
     }
473 473
 
474 474
 
475
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
475
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
476 476
     /**
477 477
      * Define array with couple substitution key => substitution value
478 478
      *
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
      */
482 482
     public function get_substitutionarray_other($outputlangs)
483 483
     {
484
-		// phpcs:enable
484
+        // phpcs:enable
485 485
         global $conf;
486 486
 
487 487
         $now = dol_now('gmt'); // gmt
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
     }
513 513
 
514 514
 
515
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
515
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
516 516
     /**
517 517
      * Define array with couple substitution key => substitution value
518 518
      * Note that vars into substitutions array are formatted.
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
      */
525 525
     public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object')
526 526
     {
527
-		// phpcs:enable
527
+        // phpcs:enable
528 528
         global $extrafields;
529 529
 
530 530
         $sumpayed = $sumdeposit = $sumcreditnote = '';
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
         return $resarray;
716 716
     }
717 717
 
718
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
718
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
719 719
     /**
720 720
      *  Define array with couple substitution key => substitution value
721 721
      *  Note that vars into substitutions array are formatted.
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
      */
728 728
     public function get_substitutionarray_lines($line, $outputlangs, $linenumber = 0)
729 729
     {
730
-		// phpcs:enable
730
+        // phpcs:enable
731 731
         $resarray = array(
732 732
             'line_pos' => $linenumber,
733 733
             'line_fulldesc' => doc_getlinedesc($line, $outputlangs),
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
         return $resarray;
840 840
     }
841 841
 
842
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
842
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
843 843
     /**
844 844
      * Define array with couple substitution key => substitution value
845 845
      * Note that vars into substitutions array are formatted.
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
      */
852 852
     public function get_substitutionarray_shipment($object, $outputlangs, $array_key = 'object')
853 853
     {
854
-		// phpcs:enable
854
+        // phpcs:enable
855 855
         global $extrafields;
856 856
 
857 857
         include_once DOL_DOCUMENT_ROOT . '/core/lib/product.lib.php';
@@ -908,7 +908,7 @@  discard block
 block discarded – undo
908 908
     }
909 909
 
910 910
 
911
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
911
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
912 912
     /**
913 913
      * Define array with couple substitution key => substitution value
914 914
      *
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
      */
920 920
     public function get_substitutionarray_each_var_object(&$object, $outputlangs, $recursive = 1)
921 921
     {
922
-		// phpcs:enable
922
+        // phpcs:enable
923 923
         $array_other = array();
924 924
         if (!empty($object)) {
925 925
             foreach ($object as $key => $value) {
@@ -948,7 +948,7 @@  discard block
 block discarded – undo
948 948
     }
949 949
 
950 950
 
951
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
951
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
952 952
     /**
953 953
      *  Fill array with couple extrafield key => extrafield value
954 954
      *  Note that vars into substitutions array are formatted.
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
      */
963 963
     public function fill_substitutionarray_with_extrafields($object, $array_to_fill, $extrafields, $array_key, $outputlangs)
964 964
     {
965
-		// phpcs:enable
965
+        // phpcs:enable
966 966
         global $conf;
967 967
 
968 968
         if ($extrafields->attributes[$object->table_element]['count'] > 0) {
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/FormSocialContrib.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->db = $db;
50 50
     }
51 51
 
52
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
52
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
53 53
     /**
54 54
      *  Return list of social contributions.
55 55
      *  Use mysoc->country_id or mysoc->country_code so they must be defined.
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function select_type_socialcontrib($selected = '', $htmlname = 'actioncode', $useempty = 0, $maxlen = 40, $help = 1, $morecss = 'minwidth300', $noerrorifempty = 0)
67 67
     {
68
-		// phpcs:enable
68
+        // phpcs:enable
69 69
         global $conf, $db, $langs, $user, $mysoc;
70 70
 
71 71
         if (empty($mysoc->country_id) && empty($mysoc->country_code)) {
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/ExtraLanguages.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.
Dolibarr/Code/Core/Classes/RssParser.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 
527 527
 
528 528
 
529
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
529
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
530 530
     /**
531 531
      *  Triggered when opened tag is found
532 532
      *
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
      */
538 538
     public function feed_start_element($p, $element, $attrs)
539 539
     {
540
-		// phpcs:enable
540
+        // phpcs:enable
541 541
         $el = $element = strtolower($element);
542 542
         $attrs = array_change_key_case($attrs, CASE_LOWER);
543 543
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     }
616 616
 
617 617
 
618
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
618
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
619 619
     /**
620 620
      *  Triggered when CDATA is found
621 621
      *
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
      */
626 626
     public function feed_cdata($p, $text)
627 627
     {
628
-		// phpcs:enable
628
+        // phpcs:enable
629 629
         if ($this->_format == 'atom' and $this->incontent) {
630 630
             $this->append_content($text);
631 631
         } else {
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
         }
635 635
     }
636 636
 
637
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
637
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
638 638
     /**
639 639
      *  Triggered when closed tag is found
640 640
      *
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
      */
645 645
     public function feed_end_element($p, $el)
646 646
     {
647
-		// phpcs:enable
647
+        // phpcs:enable
648 648
         $el = strtolower($el);
649 649
 
650 650
         if ($el == 'item' or $el == 'entry') {
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
         return $str1;
694 694
     }
695 695
 
696
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
696
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
697 697
     /**
698 698
      * Enter description here ...
699 699
      *
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
      */
703 703
     public function append_content($text)
704 704
     {
705
-		// phpcs:enable
705
+        // phpcs:enable
706 706
         if (!empty($this->initem)) {
707 707
             $this->concat($this->current_item[$this->incontent], $text);
708 708
         } elseif (!empty($this->inchannel)) {
Please login to merge, or discard this patch.