Passed
Push — GENERAL_BUG_REVIEW_240911 ( 776d89...c757bd )
by Rafael
50:33
created
public/htdocs/admin/limits.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         setEventMessages($langs->trans("ErrorValueCantBeNull", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors');
100 100
         $action = 'edit';
101 101
     }
102
-    if (! $error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) {
102
+    if (!$error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) {
103 103
         $langs->load("errors");
104 104
         $error++;
105 105
         setEventMessages($langs->trans("ErrorValueForTooLow", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors');
Please login to merge, or discard this patch.
public/htdocs/admin/expedition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 $action = GETPOST('action', 'aZ09');
51 51
 $value = GETPOST('value', 'alpha');
52
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
52
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
53 53
 
54 54
 $label = GETPOST('label', 'alpha');
55 55
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/mrp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 $action = GETPOST('action', 'aZ09');
51 51
 $value = GETPOST('value', 'alpha');
52
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
52
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
53 53
 
54 54
 $label = GETPOST('label', 'alpha');
55 55
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/expensereport_rules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 $langs->loadLangs(array("admin", "other", "trips", "errors", "dict"));
38 38
 
39 39
 // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
40
-$hookmanager->initHooks(array('admin', 'dictionaryadmin','expensereport_rules'));
40
+$hookmanager->initHooks(array('admin', 'dictionaryadmin', 'expensereport_rules'));
41 41
 
42 42
 $object = new ExpenseReportRule($db);
43 43
 
Please login to merge, or discard this patch.
public/htdocs/admin/supplier_invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
 $type = GETPOST('type', 'alpha');
46 46
 $value = GETPOST('value', 'alpha');
47
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
47
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
48 48
 
49 49
 $label = GETPOST('label', 'alpha');
50 50
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/invoice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 $action = GETPOST('action', 'aZ09');
48 48
 $value = GETPOST('value', 'alpha');
49
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
49
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
50 50
 
51 51
 $label = GETPOST('label', 'alpha');
52 52
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
 print '</form>';
818 818
 
819 819
 
820
-print '<tr class="oddeven"><td>' . $langs->trans("InvoiceCheckPosteriorDate") . '&nbsp;' ;
820
+print '<tr class="oddeven"><td>' . $langs->trans("InvoiceCheckPosteriorDate") . '&nbsp;';
821 821
 print $form->textwithpicto('', $langs->trans("InvoiceCheckPosteriorDateHelp"), 1, 'help') . '</td>';
822 822
 print '<td class="left" colspan="2">';
823 823
 print ajax_constantonoff('INVOICE_CHECK_POSTERIOR_DATE');
Please login to merge, or discard this patch.
public/htdocs/admin/webhook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 // Parameters
69 69
 $action = GETPOST('action', 'aZ09');
70 70
 $backtopage = GETPOST('backtopage', 'alpha');
71
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
71
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
72 72
 
73 73
 $value = GETPOST('value', 'alpha');
74 74
 $label = GETPOST('label', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/fckeditor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             $error++;
129 129
         }
130 130
     } else {
131
-        $error = -1;    // -1 means a warning message
131
+        $error = -1; // -1 means a warning message
132 132
     }
133 133
 
134 134
     if ($error == 0) {
Please login to merge, or discard this patch.
public/htdocs/admin/oauthlogintokens.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                 $provider . '_NAME',
157 157
                 $provider . '_ID',
158 158
                 $provider . '_SECRET',
159
-                $provider . '_URLAUTHORIZE',  // For custom oauth links
159
+                $provider . '_URLAUTHORIZE', // For custom oauth links
160 160
                 $provider . '_SCOPE'          // For custom oauth links
161 161
             );
162 162
         }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     if (!empty($listinsetup)) {
169 169
         foreach ($listinsetup as $key) {
170 170
             $supported = 0;
171
-            $keyforsupportedoauth2array = $key[0];                      // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
171
+            $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
172 172
             $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array);
173 173
             $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array);
174 174
             if (preg_match('/^.*-/', $keyforsupportedoauth2array)) {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             if (getDolGlobalString($key[4])) {
189 189
                 $shortscope = getDolGlobalString($key[4]);
190 190
             }
191
-            $state = $shortscope;   // TODO USe a better state
191
+            $state = $shortscope; // TODO USe a better state
192 192
 
193 193
             // Define $urltorenew, $urltodelete, $urltocheckperms
194 194
             if ($keyforsupportedoauth2array == 'OAUTH_GITHUB_NAME') {
Please login to merge, or discard this patch.