Passed
Push — dev ( 2f56d7...ce578a )
by Rafael
50:32
created
public/htdocs/install/fileconf.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -505,14 +505,14 @@  discard block
 block discarded – undo
505 505
                            id="db_pass" autocomplete="off"
506 506
                            name="db_pass"
507 507
                            value="<?php
508
-                           // If $force_install_databasepass is on, we don't want to set password, we just show '***'. Real value will be extracted from the forced install file at step1.
509
-                           // @phan-suppress-next-line PhanParamSuspiciousOrder
510
-                           $autofill = ((!empty($_SESSION['dol_save_pass'])) ? $_SESSION['dol_save_pass'] : str_pad('', strlen($force_install_databasepass), '*'));
511
-                           if (!empty($dolibarr_main_prod) && empty($_SESSION['dol_save_pass'])) {    // So value can't be found if install page still accessible
512
-                               $autofill = '';
513
-                           }
514
-                           print dol_escape_htmltag($autofill);
515
-                           ?>"
508
+                            // If $force_install_databasepass is on, we don't want to set password, we just show '***'. Real value will be extracted from the forced install file at step1.
509
+                            // @phan-suppress-next-line PhanParamSuspiciousOrder
510
+                            $autofill = ((!empty($_SESSION['dol_save_pass'])) ? $_SESSION['dol_save_pass'] : str_pad('', strlen($force_install_databasepass), '*'));
511
+                            if (!empty($dolibarr_main_prod) && empty($_SESSION['dol_save_pass'])) {    // So value can't be found if install page still accessible
512
+                                $autofill = '';
513
+                            }
514
+                            print dol_escape_htmltag($autofill);
515
+                            ?>"
516 516
                         <?php if (($force_install_noedit == 2 || $force_install_noedit == 3) && $force_install_databasepass !== null) {
517 517
                             print ' disabled';
518 518
                         } ?>
@@ -591,23 +591,23 @@  discard block
 block discarded – undo
591 591
                            name="db_pass_root"
592 592
                            class="needroot text-security"
593 593
                            value="<?php
594
-                           // If $force_install_databaserootpass is on, we don't want to set password here, we just show '***'. Real value will be extracted from the forced install file at step1.
595
-                           // @phan-suppress-next-line PhanParamSuspiciousOrder
596
-                           $autofill = ((!empty($force_install_databaserootpass)) ? str_pad('', strlen($force_install_databaserootpass), '*') : (isset($db_pass_root) ? $db_pass_root : ''));
597
-                           if (!empty($dolibarr_main_prod)) {
598
-                               $autofill = '';
599
-                           }
600
-                           // Do not autofill password if instance is a production instance
601
-                           if (
602
-                               !empty($_SERVER["SERVER_NAME"]) && !in_array(
603
-                                   $_SERVER["SERVER_NAME"],
604
-                                   array('127.0.0.1', 'localhost', 'localhostgit')
605
-                               )
606
-                           ) {
607
-                               $autofill = '';
608
-                           }    // Do not autofill password for remote access
609
-                           print dol_escape_htmltag($autofill);
610
-                           ?>"
594
+                            // If $force_install_databaserootpass is on, we don't want to set password here, we just show '***'. Real value will be extracted from the forced install file at step1.
595
+                            // @phan-suppress-next-line PhanParamSuspiciousOrder
596
+                            $autofill = ((!empty($force_install_databaserootpass)) ? str_pad('', strlen($force_install_databaserootpass), '*') : (isset($db_pass_root) ? $db_pass_root : ''));
597
+                            if (!empty($dolibarr_main_prod)) {
598
+                                $autofill = '';
599
+                            }
600
+                            // Do not autofill password if instance is a production instance
601
+                            if (
602
+                                !empty($_SERVER["SERVER_NAME"]) && !in_array(
603
+                                    $_SERVER["SERVER_NAME"],
604
+                                    array('127.0.0.1', 'localhost', 'localhostgit')
605
+                                )
606
+                            ) {
607
+                                $autofill = '';
608
+                            }    // Do not autofill password for remote access
609
+                            print dol_escape_htmltag($autofill);
610
+                            ?>"
611 611
                         <?php if ($force_install_noedit > 0 && !empty($force_install_databaserootpass)) {
612 612
                             print ' disabled'; /* May be removed by javascript*/
613 613
                         } ?>
Please login to merge, or discard this patch.
Dolibarr/Code/Variants/Classes/ProductAttribute.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
         }
514 514
     }
515 515
 
516
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
516
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
517 517
     /**
518 518
      * Load array lines
519 519
      *
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
      */
523 523
     public function fetch_lines($filters = '')
524 524
     {
525
-		// phpcs:enable
525
+        // phpcs:enable
526 526
         global $langs;
527 527
 
528 528
         $this->lines = array();
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
         return $this->LibStatut(0, $mode);
1243 1243
     }
1244 1244
 
1245
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1245
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1246 1246
     /**
1247 1247
      * Return label of a status
1248 1248
      *
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
      */
1253 1253
     public function LibStatut($status, $mode = 1)
1254 1254
     {
1255
-		// phpcs:enable
1255
+        // phpcs:enable
1256 1256
         return '';
1257 1257
     }
1258 1258
 
Please login to merge, or discard this patch.
Dolibarr/Code/Accountancy/Classes/AccountingJournal.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
         return $this->LibType($this->nature, $mode);
338 338
     }
339 339
 
340
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
340
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
341 341
     /**
342 342
      *  Return type of an accounting journal
343 343
      *
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     public function LibType($nature, $mode = 0)
349 349
     {
350
-		// phpcs:enable
350
+        // phpcs:enable
351 351
         global $langs;
352 352
 
353 353
         $langs->loadLangs(array("accountancy"));
Please login to merge, or discard this patch.
Dolibarr/Code/Accountancy/Classes/AccountancyExport.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2545,14 +2545,14 @@
 block discarded – undo
2545 2545
     }
2546 2546
 
2547 2547
     /**
2548
-    * Export format : iSuite Expert
2549
-    *
2550
-    * by OpenSolus [https://opensolus.fr]
2551
-    *
2548
+     * Export format : iSuite Expert
2549
+     *
2550
+     * by OpenSolus [https://opensolus.fr]
2551
+     *
2552 2552
      * @param   array       $objectLines            data
2553 2553
      * @param   resource    $exportFile             [=null] File resource to export or print if null
2554 2554
      * @return  void
2555
-    */
2555
+     */
2556 2556
     public function exportiSuiteExpert($objectLines, $exportFile = null)
2557 2557
     {
2558 2558
         $separator = ';';
Please login to merge, or discard this patch.
Dolibarr/Code/Accountancy/Classes/BookKeeping.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1987,7 +1987,7 @@  discard block
 block discarded – undo
1987 1987
         return 1;
1988 1988
     }
1989 1989
 
1990
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1990
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1991 1991
     /**
1992 1992
      * Export bookkeeping
1993 1993
      *
@@ -1996,7 +1996,7 @@  discard block
 block discarded – undo
1996 1996
      */
1997 1997
     public function export_bookkeeping($model = 'ebp')
1998 1998
     {
1999
-		// phpcs:enable
1999
+        // phpcs:enable
2000 2000
         global $conf;
2001 2001
 
2002 2002
         $sql = "SELECT rowid, doc_date, doc_type,";
@@ -2180,7 +2180,7 @@  discard block
 block discarded – undo
2180 2180
         */
2181 2181
     }
2182 2182
 
2183
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2183
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2184 2184
     /**
2185 2185
      * Return list of accounts with label by chart of accounts
2186 2186
      *
@@ -2195,7 +2195,7 @@  discard block
 block discarded – undo
2195 2195
      */
2196 2196
     public function select_account($selectid, $htmlname = 'account', $showempty = 0, $event = array(), $select_in = 0, $select_out = 0, $aabase = '')
2197 2197
     {
2198
-		// phpcs:enable
2198
+        // phpcs:enable
2199 2199
         global $conf;
2200 2200
 
2201 2201
         require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/accounting.lib.php';
@@ -2292,7 +2292,7 @@  discard block
 block discarded – undo
2292 2292
         }
2293 2293
     }
2294 2294
 
2295
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2295
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2296 2296
     /**
2297 2297
      * Description of accounting account
2298 2298
      *
@@ -2301,7 +2301,7 @@  discard block
 block discarded – undo
2301 2301
      */
2302 2302
     public function get_compte_desc($account = null)
2303 2303
     {
2304
-		// phpcs:enable
2304
+        // phpcs:enable
2305 2305
         global $conf;
2306 2306
 
2307 2307
         $pcgver = getDolGlobalInt('CHARTOFACCOUNTS');
Please login to merge, or discard this patch.
Dolibarr/Code/Accountancy/Classes/AccountingAccount.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
         return $this->LibStatut($this->status, $mode);
699 699
     }
700 700
 
701
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
701
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
702 702
     /**
703 703
      *  Return the label of a given status
704 704
      *
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
      */
709 709
     public function LibStatut($status, $mode = 0)
710 710
     {
711
-		// phpcs:enable
711
+        // phpcs:enable
712 712
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
713 713
             global $langs;
714 714
             $langs->load("users");
Please login to merge, or discard this patch.
Dolibarr/Code/Api/Classes/DolibarrApiAccess.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $this->db = $db;
82 82
     }
83 83
 
84
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName
84
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName
85 85
     /**
86 86
      * Check access
87 87
      *
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function __isAllowed()
94 94
     {
95
-		// phpcs:enable
95
+        // phpcs:enable
96 96
         global $conf, $db, $user;
97 97
 
98 98
         $login = '';
@@ -229,13 +229,13 @@  discard block
 block discarded – undo
229 229
         return in_array(static::$role, (array) $requirefortest) || static::$role == 'admin';
230 230
     }
231 231
 
232
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName
232
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName
233 233
     /**
234 234
      * @return string string to be used with WWW-Authenticate header
235 235
      */
236 236
     public function __getWWWAuthenticateString()
237 237
     {
238
-		// phpcs:enable
238
+        // phpcs:enable
239 239
         return '';
240 240
     }
241 241
 
Please login to merge, or discard this patch.
Dolibarr/Code/Api/Api/Setup.php 1 patch
Indentation   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
         return $list;
725 725
     }
726 726
 
727
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
727
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
728 728
     /**
729 729
      * Clean sensible object datas
730 730
      *
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
      */
734 734
     protected function _cleanObjectDatas($object)
735 735
     {
736
-		// phpcs:enable
736
+        // phpcs:enable
737 737
         $object = parent::_cleanObjectDatas($object);
738 738
 
739 739
         unset($object->error);
@@ -1401,7 +1401,6 @@  discard block
 block discarded – undo
1401 1401
     }
1402 1402
 
1403 1403
     /**
1404
-
1405 1404
      * Update Extrafield object
1406 1405
      *
1407 1406
      * @param   string  $attrname       extrafield attrname
Please login to merge, or discard this patch.
Dolibarr/Code/Adherents/Classes/AdherentType.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
     }
277 277
 
278 278
     /**
279
-        * Delete a language for this member type
280
-        *
281
-        * @param string $langtodelete   Language code to delete
282
-        * @param User   $user           Object user making delete
283
-        * @return int                   Return integer <0 if KO, >0 if OK
284
-        */
279
+     * Delete a language for this member type
280
+     *
281
+     * @param string $langtodelete   Language code to delete
282
+     * @param User   $user           Object user making delete
283
+     * @return int                   Return integer <0 if KO, >0 if OK
284
+     */
285 285
     public function delMultiLangs($langtodelete, $user)
286 286
     {
287 287
         $sql = "DELETE FROM " . MAIN_DB_PREFIX . "adherent_type_lang";
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
         }
533 533
     }
534 534
 
535
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
535
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
536 536
     /**
537 537
      *  Return list of members' type
538 538
      *
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
      */
542 542
     public function liste_array($status = -1)
543 543
     {
544
-		// phpcs:enable
544
+        // phpcs:enable
545 545
         global $langs;
546 546
 
547 547
         $adherenttypes = array();
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
         return $this->LibStatut($this->status, $mode);
785 785
     }
786 786
 
787
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
787
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
788 788
     /**
789 789
      *  Return the label of a given status
790 790
      *
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
      */
795 795
     public function LibStatut($status, $mode = 0)
796 796
     {
797
-		// phpcs:enable
797
+        // phpcs:enable
798 798
         global $langs;
799 799
         $langs->load('companies');
800 800
 
@@ -813,8 +813,8 @@  discard block
 block discarded – undo
813 813
         return dolGetStatus($this->labelStatus[$status], $this->labelStatusShort[$status], '', $statusType, $mode);
814 814
     }
815 815
 
816
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
817
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
816
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
817
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
818 818
     /**
819 819
      *  Retourne chaine DN complete dans l'annuaire LDAP pour l'objet
820 820
      *
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
      */
827 827
     public function _load_ldap_dn($info, $mode = 0)
828 828
     {
829
-		// phpcs:enable
829
+        // phpcs:enable
830 830
         $dn = '';
831 831
         if ($mode == 0) {
832 832
             $dn = getDolGlobalString('LDAP_KEY_MEMBERS_TYPES') . "=" . $info[getDolGlobalString('LDAP_KEY_MEMBERS_TYPES')] . "," . getDolGlobalString('LDAP_MEMBER_TYPE_DN');
@@ -841,8 +841,8 @@  discard block
 block discarded – undo
841 841
     }
842 842
 
843 843
 
844
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
845
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
844
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
845
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
846 846
     /**
847 847
      *  Initialize the info array (array of LDAP values) that will be used to call LDAP functions
848 848
      *
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
      */
851 851
     public function _load_ldap_info()
852 852
     {
853
-		// phpcs:enable
853
+        // phpcs:enable
854 854
         $info = array();
855 855
 
856 856
         // Object classes
Please login to merge, or discard this patch.