Test Failed
Push — main ( 1be143...29a1e7 )
by Rafael
51:40
created
htdocs/contact/list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 
508 508
 // Add fields from hooks - ListFrom
509 509
 $parameters = array();
510
-$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object, $action);    // Note that $action and $object may have been modified by hook
510
+$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
511 511
 $sql .= $hookmanager->resPrint;
512 512
 $sql .= ' WHERE p.entity IN (' . getEntity('contact') . ')';
513 513
 if (!empty($userid)) {    // propre au commercial
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
 if (isModEnabled('category') && $user->hasRight('societe', 'creer')) {
939 939
     $arrayofmassactions['preaffecttag'] = img_picto('', 'category', 'class="pictofixedwidth"') . $langs->trans("AffectTag");
940 940
 }
941
-if (GETPOSTINT('nomassaction') || in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
941
+if (GETPOSTINT('nomassaction') || in_array($massaction, array('presend', 'predelete', 'preaffecttag'))) {
942 942
     $arrayofmassactions = array();
943 943
 }
944 944
 if ($contextpage != 'poslist') {
Please login to merge, or discard this patch.
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 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.