Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/contact/document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 }
95 95
 $result = restrictedArea($user, 'contact', $id, 'socpeople&societe', '', '', 'rowid', 0); // If we create a contact with no company (shared contacts), no check on write permission
96 96
 
97
-$permissiontoadd = $user->hasRight('societe', 'contact', 'creer');  // Used by the include of actions_dellink.inc.php
97
+$permissiontoadd = $user->hasRight('societe', 'contact', 'creer'); // Used by the include of actions_dellink.inc.php
98 98
 
99 99
 
100 100
 /*
Please login to merge, or discard this patch.
htdocs/contact/card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1250,7 +1250,7 @@
 block discarded – undo
1250 1250
             $maxfilesizearray = getMaxFileSizeArray();
1251 1251
             $maxmin = $maxfilesizearray['maxmin'];
1252 1252
             if ($maxmin > 0) {
1253
-                print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
1253
+                print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
1254 1254
             }
1255 1255
             print '<input type="file" class="flat maxwidth200" name="photo" id="photoinput">';
1256 1256
             print '</td></tr>';
Please login to merge, or discard this patch.
htdocs/contact/perso.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
         $maxfilesizearray = getMaxFileSizeArray();
199 199
         $maxmin = $maxfilesizearray['maxmin'];
200 200
         if ($maxmin > 0) {
201
-            print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
201
+            print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
202 202
         }
203 203
         print '<input type="file" class="flat" name="photo" id="photoinput">';
204 204
         print '</td></tr>';
Please login to merge, or discard this patch.
htdocs/cron/list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -671,7 +671,7 @@
 block discarded – undo
671 671
         print '<td class="center tdlastresultcode" title="' . dol_escape_htmltag($obj->lastresult) . '">';
672 672
         if ($obj->lastresult != '') {
673 673
             if (empty($obj->lastresult)) {
674
-                print $obj->lastresult;     // Print '0'
674
+                print $obj->lastresult; // Print '0'
675 675
             } else {
676 676
                 print '<span class="error">' . dol_escape_htmltag(dol_trunc($obj->lastresult)) . '</div>';
677 677
             }
Please login to merge, or discard this patch.
htdocs/cron/card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -574,7 +574,7 @@
 block discarded – undo
574 574
         $langs->load($reg[1]);
575 575
     }
576 576
 
577
-    $labeltoshow =  preg_replace('/:.*$/', '', $object->label);
577
+    $labeltoshow = preg_replace('/:.*$/', '', $object->label);
578 578
 
579 579
     $morehtmlref = '<div class="refidno">';
580 580
     $morehtmlref .= $langs->trans($labeltoshow);
Please login to merge, or discard this patch.
htdocs/cron/info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
  * View
46 46
  */
47 47
 
48
-$form = new Form($db);  // $form is required as global value into dol_banner_tab
48
+$form = new Form($db); // $form is required as global value into dol_banner_tab
49 49
 
50 50
 llxHeader('', $langs->trans("CronInfo"));
51 51
 
Please login to merge, or discard this patch.
htdocs/cron/class/cronjob.class.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
         $datas['ref'] = '<br><b>' . $langs->trans('Ref') . ':</b> ' . dol_escape_htmltag($this->ref);
1016 1016
         $datas['label'] = '<br><b>' . $langs->trans('Title') . ':</b> ' . $langs->trans($this->label);
1017 1017
         if ($this->label != $langs->trans($this->label)) {
1018
-            $datas['label']  .= ' <span class="opacitymedium">(' . $this->label . ')</span>';
1018
+            $datas['label'] .= ' <span class="opacitymedium">(' . $this->label . ')</span>';
1019 1019
         }
1020 1020
         if (!empty($this->params)) {
1021 1021
             $datas['params'] = '<br><b>' . $langs->trans('Parameters') . ':</b> ' . dol_escape_htmltag($this->params);
@@ -1435,7 +1435,7 @@  discard block
 block discarded – undo
1435 1435
             $msg = $langs->trans("ErrorInBatch", $this->label);
1436 1436
             $from = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
1437 1437
             $cmailfile = new CMailFile($subject, $this->email_alert, $from, $msg);
1438
-            $result = $cmailfile->sendfile();   // Do not test result
1438
+            $result = $cmailfile->sendfile(); // Do not test result
1439 1439
         }
1440 1440
 
1441 1441
         return $error ? -1 : 1;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
     }
1153 1153
 
1154 1154
 
1155
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1155
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1156 1156
     /**
1157 1157
      * Run a job.
1158 1158
      * Once job is finished, status and nb of run is updated.
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
      */
1164 1164
     public function run_jobs(string $userlogin)
1165 1165
     {
1166
-		// phpcs:enable
1166
+        // phpcs:enable
1167 1167
         global $langs, $conf, $hookmanager;
1168 1168
 
1169 1169
         $hookmanager->initHooks(array('cron'));
@@ -1442,7 +1442,7 @@  discard block
 block discarded – undo
1442 1442
     }
1443 1443
 
1444 1444
 
1445
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1445
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1446 1446
     /**
1447 1447
      * Reprogram a job
1448 1448
      *
@@ -1452,7 +1452,7 @@  discard block
 block discarded – undo
1452 1452
      */
1453 1453
     public function reprogram_jobs(string $userlogin, int $now)
1454 1454
     {
1455
-		// phpcs:enable
1455
+        // phpcs:enable
1456 1456
         dol_syslog(get_class($this) . "::reprogram_jobs userlogin:$userlogin", LOG_DEBUG);
1457 1457
 
1458 1458
         $user = new User($this->db);
@@ -1532,7 +1532,7 @@  discard block
 block discarded – undo
1532 1532
         return $this->LibStatut($this->status, $mode, $this->processing, $this->lastresult);
1533 1533
     }
1534 1534
 
1535
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1535
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1536 1536
     /**
1537 1537
      * Return label of a giver status
1538 1538
      *
@@ -1544,7 +1544,7 @@  discard block
 block discarded – undo
1544 1544
      */
1545 1545
     public function LibStatut(int $status, int $mode = 0, int $processing = 0, string $lastResult = '')
1546 1546
     {
1547
-		// phpcs:enable
1547
+        // phpcs:enable
1548 1548
         $this->labelStatus = array(); // Force reset o array because label depends on other fields
1549 1549
         $this->labelStatusShort = array();
1550 1550
 
Please login to merge, or discard this patch.
htdocs/fichinter/list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 $search_date_endday = GETPOSTINT('search_date_endday');
76 76
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
77 77
 $search_date_endyear = GETPOSTINT('search_date_endyear');
78
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);   // Use tzserver
78
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
79 79
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
80 80
 $optioncss = GETPOST('optioncss', 'alpha');
81 81
 $socid = GETPOSTINT('socid');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
105 105
 $object = new Fichinter($db);
106
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
106
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
107 107
 
108 108
 $extrafields = new ExtraFields($db);
109 109
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 // Output page
411 411
 // --------------------------------------------------------------------
412 412
 
413
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
413
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
414 414
 
415 415
 
416 416
 $arrayofselected = is_array($toselect) ? $toselect : array();
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
     $objectstatic->id = $obj->rowid;
783 783
     $objectstatic->ref = $obj->ref;
784 784
     $objectstatic->ref_client = $obj->ref_client;
785
-    $objectstatic->statut = $obj->status;   // deprecated
785
+    $objectstatic->statut = $obj->status; // deprecated
786 786
     $objectstatic->status = $obj->status;
787 787
 
788 788
     $companystatic->name = $obj->name;
Please login to merge, or discard this patch.
htdocs/fichinter/card-rec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
360 360
         if (isModEnabled('contract')) {
361 361
             $formcontract = new FormContract($db);
362 362
             print "<tr><td>" . $langs->trans("Contract") . "</td><td>";
363
-            $contractid = GETPOST('contractid') ? GETPOST('contractid') : (!empty($object->fk_contrat) ? $object->fk_contrat : 0) ;
363
+            $contractid = GETPOST('contractid') ? GETPOST('contractid') : (!empty($object->fk_contrat) ? $object->fk_contrat : 0);
364 364
             $numcontract = $formcontract->select_contract($object->thirdparty->id, $contractid, 'contracttid');
365 365
             print "</td></tr>";
366 366
         }
Please login to merge, or discard this patch.