Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
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.
htdocs/admin/facture_situation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
 $value = GETPOST('value', 'alpha');
55 55
 $label = GETPOST('label', 'alpha');
56
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
56
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
57 57
 
58 58
 $scandir = GETPOST('scan_dir', 'alpha');
59 59
 $type = 'invoice';
Please login to merge, or discard this patch.
htdocs/admin/accountant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
  */
49 49
 
50 50
 $parameters = array();
51
-$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action);  // Note that $action and $object may have been modified by some hooks
51
+$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
52 52
 if ($reshook < 0) {
53 53
     setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
54 54
 }
Please login to merge, or discard this patch.
htdocs/admin/workstation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 // Parameters
39 39
 $action = GETPOST('action', 'aZ09');
40 40
 $backtopage = GETPOST('backtopage', 'alpha');
41
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
41
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
42 42
 
43 43
 $value = GETPOST('value', 'alpha');
44 44
 
Please login to merge, or discard this patch.
htdocs/admin/mails_templates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1105,7 +1105,7 @@  discard block
 block discarded – undo
1105 1105
                 print '<tr class="oddeven nohover' . (in_array($tmpfieldlist, array('topic', 'joinfiles')) ? ' nobottom' : '') . '" id="tr-' . $tmpfieldlist . '-' . $rowid . '">';
1106 1106
                 print '<td colspan="10">';
1107 1107
 
1108
-                $fieldsforcontent = array('topic', 'email_from','joinfiles', 'content');
1108
+                $fieldsforcontent = array('topic', 'email_from', 'joinfiles', 'content');
1109 1109
                 if (getDolGlobalString('MAIN_EMAIL_TEMPLATES_FOR_OBJECT_LINES')) {
1110 1110
                     $fieldsforcontent[] = 'content_lines';
1111 1111
                 }
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
                     continue; // It means this is a type of template not into elementList (may be because enabled condition of this type is false because module is not enabled)
1179 1179
                 }
1180 1180
                 // Test on 'enabled'
1181
-                if (! (int) dol_eval($obj->enabled, 1, 1, '1')) {
1181
+                if (!(int) dol_eval($obj->enabled, 1, 1, '1')) {
1182 1182
                     $i++;
1183 1183
                     continue; // Email template not qualified
1184 1184
                 }
Please login to merge, or discard this patch.
htdocs/admin/supplier_payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
 $action = GETPOST('action', 'aZ09');
42 42
 $value = GETPOST('value', 'alpha');
43
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
43
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
44 44
 
45 45
 $label = GETPOST('label', 'alpha');
46 46
 $scandir = GETPOST('scandir', 'alpha');
Please login to merge, or discard this patch.
htdocs/admin/oauthlogintokens.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 $provider . '_NAME',
153 153
                 $provider . '_ID',
154 154
                 $provider . '_SECRET',
155
-                $provider . '_URLAUTHORIZE',  // For custom oauth links
155
+                $provider . '_URLAUTHORIZE', // For custom oauth links
156 156
                 $provider . '_SCOPE'          // For custom oauth links
157 157
             );
158 158
         }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     // $list is defined into oauth.lib.php to the list of supporter OAuth providers.
164 164
     foreach ($listinsetup as $key) {
165 165
         $supported = 0;
166
-        $keyforsupportedoauth2array = $key[0];                      // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
166
+        $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
167 167
         $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array);
168 168
         $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array);
169 169
         if (preg_match('/^.*-/', $keyforsupportedoauth2array)) {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         if (getDolGlobalString($key[4])) {
184 184
             $shortscope = getDolGlobalString($key[4]);
185 185
         }
186
-        $state = $shortscope;   // TODO USe a better state
186
+        $state = $shortscope; // TODO USe a better state
187 187
 
188 188
         // Define $urltorenew, $urltodelete, $urltocheckperms
189 189
         if ($keyforsupportedoauth2array == 'OAUTH_GITHUB_NAME') {
Please login to merge, or discard this patch.
htdocs/admin/barcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
 // Get Parameters
42 42
 $action = GETPOST('action', 'aZ09');
43
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
43
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
44 44
 
45 45
 
46 46
 /*
Please login to merge, or discard this patch.
htdocs/admin/oauth.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
     $globalkey = empty($provider) ? $label : $label . '-' . $provider;
196 196
 
197
-    if (!dolibarr_del_const($db, $globalkey . '_NAME', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_ID', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SECRET', $conf->entity) ||  !dolibarr_del_const($db, $globalkey . '_URLAUTHORIZE', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SCOPE', $conf->entity)) {
197
+    if (!dolibarr_del_const($db, $globalkey . '_NAME', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_ID', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SECRET', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_URLAUTHORIZE', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SCOPE', $conf->entity)) {
198 198
         setEventMessages($langs->trans("ErrorInEntryDeletion"), null, 'errors');
199 199
         $error++;
200 200
     } else {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
             $provider . '_NAME',
271 271
             $provider . '_ID',
272 272
             $provider . '_SECRET',
273
-            $provider . '_URLAUTHORIZE',  // For custom oauth links
273
+            $provider . '_URLAUTHORIZE', // For custom oauth links
274 274
             $provider . '_SCOPE'          // For custom oauth links
275 275
         );
276 276
     }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     // $list is defined into oauth.lib.php to the list of supporter OAuth providers.
290 290
     foreach ($listinsetup as $key) {
291 291
         $supported = 0;
292
-        $keyforsupportedoauth2array = $key[0];                      // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
292
+        $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
293 293
         $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array);
294 294
         $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array);
295 295
         if (preg_match('/^.*-/', $keyforsupportedoauth2array)) {
Please login to merge, or discard this patch.