Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
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 1 patch
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.
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.
htdocs/fichinter/card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1070,7 +1070,7 @@
 block discarded – undo
1070 1070
     } else {
1071 1071
         print '<form name="fichinter" action="' . $_SERVER['PHP_SELF'] . '" method="POST">';
1072 1072
         print '<input type="hidden" name="token" value="' . newToken() . '">';
1073
-        print '<input type="hidden" name="action" value="create">';     // We go back to create action
1073
+        print '<input type="hidden" name="action" value="create">'; // We go back to create action
1074 1074
         print '<input type="hidden" name="backtopage" value="' . $backtopage . '">';
1075 1075
 
1076 1076
         print dol_get_fiche_head('');
Please login to merge, or discard this patch.
htdocs/website/websiteaccount_card.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@
 block discarded – undo
91 91
 } else {
92 92
     $permissiontocreate = isModEnabled('website') && $user->hasRight('website', 'write') || isModEnabled('webportal') && $user->hasRight('webportal', 'write');
93 93
 }
94
-$permissionnote    = $permissiontocreate;   //  Used by the include of actions_setnotes.inc.php
95
-$permissiondellink = $permissiontocreate;   //  Used by the include of actions_dellink.inc.php
96
-$permissiontoadd   = $permissiontocreate;   //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
94
+$permissionnote    = $permissiontocreate; //  Used by the include of actions_setnotes.inc.php
95
+$permissiondellink = $permissiontocreate; //  Used by the include of actions_dellink.inc.php
96
+$permissiontoadd   = $permissiontocreate; //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
97 97
 
98 98
 // check access from type of site on create, edit, delete (other than view)
99 99
 $site_type_js = '';
Please login to merge, or discard this patch.