Passed
Push — main ( 9a81fe...875825 )
by Rafael
41:55
created
Dolibarr/Modules/Install/Controller/InstallController.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
                             print '<span class="error">A ' . $conffiletoshow . ' file exists with a dolibarr_main_document_root to ' . $dolibarr_main_document_root . ' that seems wrong. Try to fix or remove the ' . $conffiletoshow . ' file.</span><br>' . "\n";
429 429
                             dol_syslog("A '" . $conffiletoshow . "' file exists with a dolibarr_main_document_root to " . $dolibarr_main_document_root . " that seems wrong. Try to fix or remove the '" . $conffiletoshow . "' file.", LOG_WARNING);
430 430
                         } else {
431
-                            require_once $dolibarr_main_document_root . '/../Dolibarr/Lib/Admin.php';;
431
+                            require_once $dolibarr_main_document_root . '/../Dolibarr/Lib/Admin.php'; ;
432 432
 
433 433
                             // If password is encoded, we decode it
434 434
                             if (preg_match('/crypted:/i', $dolibarr_main_db_pass) || !empty($dolibarr_main_db_encrypted_pass)) {
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
                     $allowupgrade = true;
546 546
                 }
547 547
 
548
-                $dir = DOL_DOCUMENT_ROOT . "/install/mysql/migration/";   // We use mysql migration scripts whatever is database driver
548
+                $dir = DOL_DOCUMENT_ROOT . "/install/mysql/migration/"; // We use mysql migration scripts whatever is database driver
549 549
                 dolibarr_install_syslog("Scan sql files for migration files in " . $dir);
550 550
 
551 551
                 // Get files list of migration file x.y.z-a.b.c.sql into /install/mysql/migration
@@ -2040,67 +2040,67 @@  discard block
 block discarded – undo
2040 2040
                     fwrite($fp, "\n");
2041 2041
                     if (empty($force_dolibarr_lib_FPDF_PATH)) {
2042 2042
                         fwrite($fp, '//');
2043
-                        $force_dolibarr_lib_FPDF_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2043
+                        $force_dolibarr_lib_FPDF_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2044 2044
                     }
2045 2045
                     fwrite($fp, '$dolibarr_lib_FPDF_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_FPDF_PATH)) . '";');
2046 2046
                     fwrite($fp, "\n");
2047 2047
                     if (empty($force_dolibarr_lib_TCPDF_PATH)) {
2048 2048
                         fwrite($fp, '//');
2049
-                        $force_dolibarr_lib_TCPDF_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2049
+                        $force_dolibarr_lib_TCPDF_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2050 2050
                     }
2051 2051
                     fwrite($fp, '$dolibarr_lib_TCPDF_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_TCPDF_PATH)) . '";');
2052 2052
                     fwrite($fp, "\n");
2053 2053
                     if (empty($force_dolibarr_lib_FPDI_PATH)) {
2054 2054
                         fwrite($fp, '//');
2055
-                        $force_dolibarr_lib_FPDI_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2055
+                        $force_dolibarr_lib_FPDI_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2056 2056
                     }
2057 2057
                     fwrite($fp, '$dolibarr_lib_FPDI_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_FPDI_PATH)) . '";');
2058 2058
                     fwrite($fp, "\n");
2059 2059
                     if (empty($force_dolibarr_lib_TCPDI_PATH)) {
2060 2060
                         fwrite($fp, '//');
2061
-                        $force_dolibarr_lib_TCPDI_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2061
+                        $force_dolibarr_lib_TCPDI_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2062 2062
                     }
2063 2063
                     fwrite($fp, '$dolibarr_lib_TCPDI_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_TCPDI_PATH)) . '";');
2064 2064
                     fwrite($fp, "\n");
2065 2065
                     if (empty($force_dolibarr_lib_GEOIP_PATH)) {
2066 2066
                         fwrite($fp, '//');
2067
-                        $force_dolibarr_lib_GEOIP_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2067
+                        $force_dolibarr_lib_GEOIP_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2068 2068
                     }
2069 2069
                     fwrite($fp, '$dolibarr_lib_GEOIP_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_GEOIP_PATH)) . '";');
2070 2070
                     fwrite($fp, "\n");
2071 2071
                     if (empty($force_dolibarr_lib_NUSOAP_PATH)) {
2072 2072
                         fwrite($fp, '//');
2073
-                        $force_dolibarr_lib_NUSOAP_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2073
+                        $force_dolibarr_lib_NUSOAP_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2074 2074
                     }
2075 2075
                     fwrite($fp, '$dolibarr_lib_NUSOAP_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_NUSOAP_PATH)) . '";');
2076 2076
                     fwrite($fp, "\n");
2077 2077
                     if (empty($force_dolibarr_lib_ODTPHP_PATH)) {
2078 2078
                         fwrite($fp, '//');
2079
-                        $force_dolibarr_lib_ODTPHP_PATH = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2079
+                        $force_dolibarr_lib_ODTPHP_PATH = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2080 2080
                     }
2081 2081
                     fwrite($fp, '$dolibarr_lib_ODTPHP_PATH="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_ODTPHP_PATH)) . '";');
2082 2082
                     fwrite($fp, "\n");
2083 2083
                     if (empty($force_dolibarr_lib_ODTPHP_PATHTOPCLZIP)) {
2084 2084
                         fwrite($fp, '//');
2085
-                        $force_dolibarr_lib_ODTPHP_PATHTOPCLZIP = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2085
+                        $force_dolibarr_lib_ODTPHP_PATHTOPCLZIP = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2086 2086
                     }
2087 2087
                     fwrite($fp, '$dolibarr_lib_ODTPHP_PATHTOPCLZIP="' . dol_escape_php(dol_sanitizePathName($force_dolibarr_lib_ODTPHP_PATHTOPCLZIP)) . '";');
2088 2088
                     fwrite($fp, "\n");
2089 2089
                     if (empty($force_dolibarr_js_CKEDITOR)) {
2090 2090
                         fwrite($fp, '//');
2091
-                        $force_dolibarr_js_CKEDITOR = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2091
+                        $force_dolibarr_js_CKEDITOR = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2092 2092
                     }
2093 2093
                     fwrite($fp, '$dolibarr_js_CKEDITOR=\'' . dol_escape_php($force_dolibarr_js_CKEDITOR, 1) . '\';');
2094 2094
                     fwrite($fp, "\n");
2095 2095
                     if (empty($force_dolibarr_js_JQUERY)) {
2096 2096
                         fwrite($fp, '//');
2097
-                        $force_dolibarr_js_JQUERY = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2097
+                        $force_dolibarr_js_JQUERY = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2098 2098
                     }
2099 2099
                     fwrite($fp, '$dolibarr_js_JQUERY=\'' . dol_escape_php($force_dolibarr_js_JQUERY, 1) . '\';');
2100 2100
                     fwrite($fp, "\n");
2101 2101
                     if (empty($force_dolibarr_js_JQUERY_UI)) {
2102 2102
                         fwrite($fp, '//');
2103
-                        $force_dolibarr_js_JQUERY_UI = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2103
+                        $force_dolibarr_js_JQUERY_UI = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2104 2104
                     }
2105 2105
                     fwrite($fp, '$dolibarr_js_JQUERY_UI=\'' . dol_escape_php($force_dolibarr_js_JQUERY_UI, 1) . '\';');
2106 2106
                     fwrite($fp, "\n");
@@ -2109,13 +2109,13 @@  discard block
 block discarded – undo
2109 2109
                     fwrite($fp, "\n");
2110 2110
                     if (empty($force_dolibarr_font_DOL_DEFAULT_TTF)) {
2111 2111
                         fwrite($fp, '//');
2112
-                        $force_dolibarr_font_DOL_DEFAULT_TTF = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2112
+                        $force_dolibarr_font_DOL_DEFAULT_TTF = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2113 2113
                     }
2114 2114
                     fwrite($fp, '$dolibarr_font_DOL_DEFAULT_TTF=\'' . dol_escape_php($force_dolibarr_font_DOL_DEFAULT_TTF, 1) . '\';');
2115 2115
                     fwrite($fp, "\n");
2116 2116
                     if (empty($force_dolibarr_font_DOL_DEFAULT_TTF_BOLD)) {
2117 2117
                         fwrite($fp, '//');
2118
-                        $force_dolibarr_font_DOL_DEFAULT_TTF_BOLD = '';  // @phan-suppress-current-line PhanPluginRedundantAssignment
2118
+                        $force_dolibarr_font_DOL_DEFAULT_TTF_BOLD = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
2119 2119
                     }
2120 2120
                     fwrite($fp, '$dolibarr_font_DOL_DEFAULT_TTF_BOLD=\'' . dol_escape_php($force_dolibarr_font_DOL_DEFAULT_TTF_BOLD, 1) . '\';');
2121 2121
                     fwrite($fp, "\n");
@@ -2435,9 +2435,9 @@  discard block
 block discarded – undo
2435 2435
 // Only works if you are not in safe_mode. / Ne fonctionne que si on est pas en safe_mode.
2436 2436
 
2437 2437
         $err = error_reporting();
2438
-        error_reporting(0);      // Disable all errors
2438
+        error_reporting(0); // Disable all errors
2439 2439
 //error_reporting(E_ALL);
2440
-        @set_time_limit(1800);   // Need 1800 on some very slow OS like Windows 7/64
2440
+        @set_time_limit(1800); // Need 1800 on some very slow OS like Windows 7/64
2441 2441
         error_reporting($err);
2442 2442
 
2443 2443
         $action = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : (empty($argv[1]) ? '' : $argv[1]);
@@ -2991,7 +2991,7 @@  discard block
 block discarded – undo
2991 2991
 
2992 2992
         $conf->file->instance_unique_id = (empty($dolibarr_main_instance_unique_id) ? (empty($dolibarr_main_cookie_cryptkey) ? '' : $dolibarr_main_cookie_cryptkey) : $dolibarr_main_instance_unique_id); // Unique id of instance
2993 2993
 
2994
-        $hash_unique_id = dol_hash('dolibarr' . $conf->file->instance_unique_id, 'sha256');   // Note: if the global salt changes, this hash changes too so ping may be counted twice. We don't mind. It is for statistics purpose only.
2994
+        $hash_unique_id = dol_hash('dolibarr' . $conf->file->instance_unique_id, 'sha256'); // Note: if the global salt changes, this hash changes too so ping may be counted twice. We don't mind. It is for statistics purpose only.
2995 2995
 
2996 2996
         $out = '<input type="checkbox" name="dolibarrpingno" id="dolibarrpingno"' . ((getDolGlobalString('MAIN_FIRST_PING_OK_ID') == 'disabled') ? '' : ' value="checked" checked="true"') . '> ';
2997 2997
         $out .= '<label for="dolibarrpingno">' . $langs->trans("MakeAnonymousPing") . '</label>';
@@ -3325,8 +3325,8 @@  discard block
 block discarded – undo
3325 3325
                     $newuser->admin = 1;
3326 3326
                     $newuser->entity = 0;
3327 3327
 
3328
-                    $conf->global->USER_MAIL_REQUIRED = 0;          // Force global option to be sure to create a new user with no email
3329
-                    $conf->global->USER_PASSWORD_GENERATED = '';    // To not use any rule for password validation
3328
+                    $conf->global->USER_MAIL_REQUIRED = 0; // Force global option to be sure to create a new user with no email
3329
+                    $conf->global->USER_PASSWORD_GENERATED = ''; // To not use any rule for password validation
3330 3330
 
3331 3331
                     $result = $newuser->create($createuser, 1);
3332 3332
                     if ($result > 0) {
Please login to merge, or discard this patch.
Dolibarr/Modules/Ai/Controller/AiAdminController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 // Load Dolibarr environment
35 35
 require BASE_PATH . '/main.inc.php';
36 36
 require_once BASE_PATH . '/ai/lib/ai.lib.php';
37
-require_once BASE_PATH . '/../Dolibarr/Lib/Admin.php';;
37
+require_once BASE_PATH . '/../Dolibarr/Lib/Admin.php'; ;
38 38
 
39 39
 use DoliCore\Base\DolibarrController;
40 40
 use DoliCore\Form\Form;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 // Parameters
76 76
         $action = GETPOST('action', 'aZ09');
77 77
         $backtopage = GETPOST('backtopage', 'alpha');
78
-        $modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
78
+        $modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
79 79
 
80 80
         if (empty($action)) {
81 81
             $action = 'edit';
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $item->defaultFieldValue = '';
114 114
             $item->cssClass = 'minwidth500';*/
115 115
 
116
-            $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY');  // Name of constant must end with _KEY so it is encrypted when saved into database.
116
+            $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY'); // Name of constant must end with _KEY so it is encrypted when saved into database.
117 117
             $item->defaultFieldValue = '';
118 118
             $item->cssClass = 'minwidth500';
119 119
         }
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 // Parameters
162 162
         $action = GETPOST('action', 'aZ09');
163 163
         $backtopage = GETPOST('backtopage', 'alpha');
164
-        $modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
164
+        $modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
165 165
 
166 166
         if (empty($action)) {
167 167
             $action = 'edit';
Please login to merge, or discard this patch.
Dolibarr/Modules/BookCal/Views/availabilities_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 // Output page
158 158
 // --------------------------------------------------------------------
159 159
 
160
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
160
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
161 161
 
162 162
 // Example : Adding jquery code
163 163
 // print '<script type="text/javascript">
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     } elseif (in_array($val['type'], ['double(24,8)', 'double(6,3)', 'integer', 'real', 'price']) && $key != 'rowid' && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
381 381
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
382 382
     }
383
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
383
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
384 384
     if (!empty($arrayfields['t.' . $key]['checked'])) {
385 385
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
386 386
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
Dolibarr/Modules/BookCal/Views/calendar_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 // Output page
158 158
 // --------------------------------------------------------------------
159 159
 
160
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
160
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
161 161
 
162 162
 $arrayofselected = is_array($toselect) ? $toselect : [];
163 163
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     } elseif (in_array($val['type'], ['double(24,8)', 'double(6,3)', 'integer', 'real', 'price']) && $key != 'rowid' && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
366 366
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
367 367
     }
368
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
368
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
369 369
     if (!empty($arrayfields['t.' . $key]['checked'])) {
370 370
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
371 371
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
Dolibarr/Modules/BookCal/Controller/BookCalCalendarListController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $object = new Calendar($db);
94 94
         $extrafields = new ExtraFields($db);
95 95
         $diroutputmassaction = $conf->bookcal->dir_output . '/temp/massgeneration/' . $user->id;
96
-        $hookmanager->initHooks([$contextpage]);   // Note that conf->hooks_modules contains array of activated contexes
96
+        $hookmanager->initHooks([$contextpage]); // Note that conf->hooks_modules contains array of activated contexes
97 97
 
98 98
 // Fetch optionals attributes and labels
99 99
         $extrafields->fetch_name_optionals_label($object->table_element);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 // Default sort order (if not yet defined by previous GETPOST)
105 105
         if (!$sortfield) {
106
-            reset($object->fields);                 // Reset is required to avoid key() to return null.
106
+            reset($object->fields); // Reset is required to avoid key() to return null.
107 107
             $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
108 108
         }
109 109
         if (!$sortorder) {
Please login to merge, or discard this patch.
Dolibarr/Modules/BookCal/Controller/BookCalAdminSetupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 // Parameters
80 80
         $action = GETPOST('action', 'aZ09');
81 81
         $backtopage = GETPOST('backtopage', 'alpha');
82
-        $modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
82
+        $modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
83 83
 
84 84
         $value = GETPOST('value', 'alpha');
85 85
         $label = GETPOST('label', 'alpha');
Please login to merge, or discard this patch.
Dolibarr/Modules/BookCal/Controller/BookCalAvailabilitiesListController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 
105 105
 // Default sort order (if not yet defined by previous GETPOST)
106 106
         if (!$sortfield) {
107
-            reset($object->fields);                 // Reset is required to avoid key() to return null.
107
+            reset($object->fields); // Reset is required to avoid key() to return null.
108 108
             $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
109 109
         }
110 110
         if (!$sortorder) {
Please login to merge, or discard this patch.
Dolibarr/Modules/BookCal/Controller/BookCalCalendarCardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1838,7 +1838,7 @@
 block discarded – undo
1838 1838
         $confirm = GETPOST('confirm', 'alpha');
1839 1839
         $cancel = GETPOST('cancel', 'aZ09');
1840 1840
         $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search
1841
-        $backtopage = GETPOST('backtopage', 'alpha');                   // if not set, a default page will be used
1841
+        $backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used
1842 1842
         $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used
1843 1843
         $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha');
1844 1844
         $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09');
Please login to merge, or discard this patch.
htdocs/install/repair.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 if (file_exists($conffile)) {
33 33
     include_once $conffile;
34 34
 }
35
-require_once $dolibarr_main_document_root . '/../Dolibarr/Lib/Admin.php';;
35
+require_once $dolibarr_main_document_root . '/../Dolibarr/Lib/Admin.php'; ;
36 36
 include_once $dolibarr_main_document_root . '/../Dolibarr/Lib/Images.php';
37 37
 require_once $dolibarr_main_document_root . '/core/class/extrafields.class.php';
38 38
 require_once 'lib/repair.lib.php';
@@ -1147,13 +1147,13 @@  discard block
 block discarded – undo
1147 1147
                             }
1148 1148
                             if ($key == 'js') {
1149 1149
                                 $value = $obj->value;
1150
-                                $valuearray = (array) json_decode($value);  // Force cast into array because sometimes it is a stdClass
1150
+                                $valuearray = (array) json_decode($value); // Force cast into array because sometimes it is a stdClass
1151 1151
                                 $reloffile = $valuearray[0];
1152 1152
                                 $reloffile = preg_replace('/^\//', '', $valuearray[0]);
1153 1153
                             }
1154 1154
                             if ($key == 'css') {
1155 1155
                                 $value = $obj->value;
1156
-                                $valuearray = (array) json_decode($value);  // Force cast into array because sometimes it is a stdClass
1156
+                                $valuearray = (array) json_decode($value); // Force cast into array because sometimes it is a stdClass
1157 1157
                                 if ($value && (!is_array($valuearray) || count($valuearray) == 0)) {
1158 1158
                                     $valuearray = array();
1159 1159
                                     $valuearray[0] = $value; // If value was not a json array but a string
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
                                     $result = 'found'; // If error, we force like if we found to avoid any deletion
1170 1170
                                 }
1171 1171
                             } else {
1172
-                                $result = 'found';  //
1172
+                                $result = 'found'; //
1173 1173
                             }
1174 1174
 
1175 1175
                             if (!$result) {
Please login to merge, or discard this patch.