Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/admin/system/database-tables.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
  *  \brief      Page with information on database tables. Add also some maintenance action to convert tables.
26 26
  */
27 27
 
28
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
29
-    define('CSRFCHECK_WITH_TOKEN', '1');        // Force use of CSRF protection with tokens even for GET
28
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
29
+    define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
30 30
 }
31 31
 
32 32
 // Load Dolibarr environment
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             //print $shortsqlfilename.' ';
116 116
             $shortsqlfilename = preg_replace('/\-[a-z]+\./', '.', $value['name']);
117 117
             $arrayoffiles[$value['name']] = $shortsqlfilename;
118
-            if ($value['name'] == $shortsqlfilename && ! preg_match('/\.key\.sql$/', $value['name'])) {
118
+            if ($value['name'] == $shortsqlfilename && !preg_match('/\.key\.sql$/', $value['name'])) {
119 119
                 // This is a sql file automatically created
120 120
                 $arrayoftablesautocreated[$value['name']] = $shortsqlfilename;
121 121
             }
Please login to merge, or discard this patch.
htdocs/admin/mailing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     $checkread_key = GETPOST('MAILING_EMAIL_UNSUBSCRIBE_KEY', 'alpha');
55 55
     $contactbulkdefault = GETPOSTINT('MAILING_CONTACT_DEFAULT_BULK_STATUS');
56 56
     if (GETPOST('MAILING_DELAY', 'alpha') != '') {
57
-        $mailingdelay = price2num(GETPOST('MAILING_DELAY', 'alpha'), 3);        // Not less than 1 millisecond.
57
+        $mailingdelay = price2num(GETPOST('MAILING_DELAY', 'alpha'), 3); // Not less than 1 millisecond.
58 58
     } else {
59 59
         $mailingdelay = '';
60 60
     }
Please login to merge, or discard this patch.
htdocs/admin/company.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 print '<tr class="oddeven"><td><label for="logo">' . $form->textwithpicto($langs->trans("Logo"), $tooltiplogo) . '</label></td><td>';
532 532
 print '<div class="centpercent nobordernopadding valignmiddle "><div class="inline-block marginrightonly">';
533 533
 if ($maxmin > 0) {
534
-    print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
534
+    print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
535 535
 }
536 536
 print '<input type="file" class="flat minwidth100 maxwidthinputfileonsmartphone" name="logo" id="logo" accept="image/*">';
537 537
 print '</div>';
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 $maxfilesizearray = getMaxFileSizeArray();
574 574
 $maxmin = $maxfilesizearray['maxmin'];
575 575
 if ($maxmin > 0) {
576
-    print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
576
+    print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
577 577
 }
578 578
 print '<input type="file" class="flat minwidth100 maxwidthinputfileonsmartphone" name="logo_squarred" id="logo_squarred" accept="image/*">';
579 579
 print '</div>';
Please login to merge, or discard this patch.
htdocs/admin/stock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
 $action = GETPOST('action', 'aZ09');
45 45
 $value = GETPOST('value', 'alpha');
46
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
46
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
47 47
 $label = GETPOST('label', 'alpha');
48 48
 $scandir = GETPOST('scan_dir', 'alpha');
49 49
 $type = 'stock';
Please login to merge, or discard this patch.
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.
htdocs/admin/usergroup.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
 $action = GETPOST('action', 'aZ09');
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
 $type = 'group';
50 50
 
Please login to merge, or discard this patch.
htdocs/admin/mails_ticket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     if (!empty($conf->use_javascript_ajax) || (isset($conf->global->MAIN_MAIL_SENDMODE_TICKET) && in_array($conf->global->MAIN_MAIL_SENDMODE_TICKET, array('smtps', 'swiftmailer')))) {
440 440
         print '<tr class="oddeven smtp_oauth_service hideifdefault"><td>' . $langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE") . '</td><td>';
441 441
         // SuperAdministrator access only
442
-        if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
442
+        if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
443 443
             print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET', $oauthservices, $conf->global->MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET);
444 444
         } else {
445 445
             $text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE_TICKET')];
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
         // AUTH method
530 530
         if (in_array(getDolGlobalString('MAIN_MAIL_SENDMODE_TICKET'), array('smtps', 'swiftmailer'))) {
531 531
             $authtype = getDolGlobalString('MAIN_MAIL_SMTPS_AUTH_TYPE_TICKET', 'LOGIN');
532
-            $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '') ;
532
+            $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '');
533 533
             print '<tr class="oddeven hideifdefault"><td>' . $langs->trans("MAIN_MAIL_SMTPS_AUTH_TYPE") . '</td><td>' . $text . '</td></tr>';
534 534
         }
535 535
 
Please login to merge, or discard this patch.
htdocs/admin/hrm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@
 block discarded – undo
52 52
 
53 53
 $value = GETPOST('value', 'alpha');
54 54
 $label = GETPOST('label', 'alpha');
55
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
55
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
56 56
 
57 57
 $scandir = GETPOST('scan_dir', 'alpha');
58 58
 $type = 'evaluation';
59 59
 
60 60
 $arrayofparameters = array(
61
-    'HRM_MAXRANK' => array('type' => 'integer','enabled' => 1),
62
-    'HRM_DEFAULT_SKILL_DESCRIPTION' => array('type' => 'varchar','enabled' => 1),
61
+    'HRM_MAXRANK' => array('type' => 'integer', 'enabled' => 1),
62
+    'HRM_DEFAULT_SKILL_DESCRIPTION' => array('type' => 'varchar', 'enabled' => 1),
63 63
 );
64 64
 
65 65
 $error = 0;
Please login to merge, or discard this patch.
htdocs/admin/delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 $action  = GETPOST('action', 'alpha');
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');
Please login to merge, or discard this patch.