Test Failed
Push — main ( 1f99c7...ac1cad )
by Rafael
61:18
created
htdocs/reception/list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 $search_date_delivery_endday = GETPOSTINT('search_date_delivery_endday');
67 67
 $search_date_delivery_endmonth = GETPOSTINT('search_date_delivery_endmonth');
68 68
 $search_date_delivery_endyear = GETPOSTINT('search_date_delivery_endyear');
69
-$search_date_delivery_start = dol_mktime(0, 0, 0, $search_date_delivery_startmonth, $search_date_delivery_startday, $search_date_delivery_startyear);   // Use tzserver
69
+$search_date_delivery_start = dol_mktime(0, 0, 0, $search_date_delivery_startmonth, $search_date_delivery_startday, $search_date_delivery_startyear); // Use tzserver
70 70
 $search_date_delivery_end = dol_mktime(23, 59, 59, $search_date_delivery_endmonth, $search_date_delivery_endday, $search_date_delivery_endyear);
71 71
 $search_date_create_startday = GETPOSTINT('search_date_create_startday');
72 72
 $search_date_create_startmonth = GETPOSTINT('search_date_create_startmonth');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 $search_date_create_endday = GETPOSTINT('search_date_create_endday');
75 75
 $search_date_create_endmonth = GETPOSTINT('search_date_create_endmonth');
76 76
 $search_date_create_endyear = GETPOSTINT('search_date_create_endyear');
77
-$search_date_create_start = dol_mktime(0, 0, 0, $search_date_create_startmonth, $search_date_create_startday, $search_date_create_startyear);   // Use tzserver
77
+$search_date_create_start = dol_mktime(0, 0, 0, $search_date_create_startmonth, $search_date_create_startday, $search_date_create_startyear); // Use tzserver
78 78
 $search_date_create_end = dol_mktime(23, 59, 59, $search_date_create_endmonth, $search_date_create_endday, $search_date_create_endyear);
79 79
 $search_billed = GETPOSTINT("search_billed");
80 80
 $search_status = GETPOST('search_status', 'intcomma');
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
                 // if the VAT reverse-charge is activated by default in supplier card to resume the information
333 333
                 $objecttmp->vat_reverse_charge = $soc->vat_reverse_charge;
334 334
 
335
-                $objecttmp->fk_project          = $rcp->fk_project;
335
+                $objecttmp->fk_project = $rcp->fk_project;
336 336
                 //$objecttmp->multicurrency_code = $rcp->multicurrency_code;
337 337
                 if (empty($createbills_onebythird)) {
338 338
                     $objecttmp->ref_supplier = $rcp->ref;
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
                     }
366 366
                 }
367 367
 
368
-                $res = $objecttmp->create($user);       // This should create the supplier invoice + links into $objecttmp->linked_objects + add a link to ->origin_id
368
+                $res = $objecttmp->create($user); // This should create the supplier invoice + links into $objecttmp->linked_objects + add a link to ->origin_id
369 369
 
370 370
                 //var_dump($objecttmp->error);exit;
371 371
                 if ($res > 0) {
Please login to merge, or discard this patch.
htdocs/reception/card.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
         // Loop lines to calculate $totalqty
345 345
         for ($i = 1; $i <= $num; $i++) {
346
-            $idl = "idl" . $i;    // id line source
346
+            $idl = "idl" . $i; // id line source
347 347
 
348 348
             //$sub_qty = array();
349 349
             //$subtotalqty = 0;
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
             //$j = 0;
352 352
             //$batch = "batchl".$i."_0";
353 353
             //$stockLocation = "ent1".$i."_0";
354
-            $qty = "qtyl" . $i;   // qty
354
+            $qty = "qtyl" . $i; // qty
355 355
 
356 356
             //reception line for product with no batch management and no multiple stock location
357 357
             if (GETPOST($qty, 'alpha') > 0) {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
         if ($totalqty > 0) {  // There is at least one thing to ship
367 367
             for ($i = 1; $i <= $num; $i++) {
368
-                $idl = "idl" . $i;    // id line source
368
+                $idl = "idl" . $i; // id line source
369 369
                 $lineToTest = '';
370 370
                 $lineId = GETPOSTINT($idl);
371 371
                 foreach ($objectsrc->lines as $linesrc) {
@@ -1144,7 +1144,7 @@  discard block
 block discarded – undo
1144 1144
 
1145 1145
                     print '<input type="hidden" name="productl' . $indiceAsked . '" value="' . $line->fk_product . '">';
1146 1146
 
1147
-                    if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1147
+                    if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1148 1148
                         print '<input type="hidden" name="productid' . $indiceAsked . '" value="' . $line->fk_product . '">';
1149 1149
 
1150 1150
                         // Show product and description
@@ -1166,7 +1166,7 @@  discard block
 block discarded – undo
1166 1166
                     print '</td>';
1167 1167
                 } else {
1168 1168
                     print "<td>";
1169
-                    if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1169
+                    if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1170 1170
                         if ($type == 1) {
1171 1171
                             $text = img_object($langs->trans('Service'), 'service');
1172 1172
                         } else {
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
 
1196 1196
                 // Qty in source purchase order line
1197 1197
                 print '<td class="center">';
1198
-                if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1198
+                if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1199 1199
                     print $line->qty;
1200 1200
                 }
1201 1201
                 print '<input type="hidden" name="fk_commandefournisseurdet' . $indiceAsked . '" value="' . $line->id . '">';
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
                 // Qty already received
1208 1208
                 print '<td class="center">';
1209 1209
                 $quantityDelivered = $objectsrc->receptions[$line->id];
1210
-                if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1210
+                if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1211 1211
                     print $quantityDelivered;
1212 1212
                 }
1213 1213
                 print '<input name="qtydelivered' . $indiceAsked . '" id="qtydelivered' . $indiceAsked . '" type="hidden" value="' . $quantityDelivered . '">';
Please login to merge, or discard this patch.
htdocs/reception/class/reception.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -736,9 +736,9 @@  discard block
 block discarded – undo
736 736
                 if (empty($this->origin_object->lines)) {
737 737
                     $res = $this->origin_object->fetch_lines();
738 738
                     if ($this->origin_object instanceof CommandeFournisseur) {
739
-                        $this->commandeFournisseur = $this->origin_object;  // deprecated
739
+                        $this->commandeFournisseur = $this->origin_object; // deprecated
740 740
                     } else {
741
-                        $this->commandeFournisseur = null;  // deprecated
741
+                        $this->commandeFournisseur = null; // deprecated
742 742
                     }
743 743
                     if ($res < 0) {
744 744
                         return $res;
@@ -1358,7 +1358,7 @@  discard block
 block discarded – undo
1358 1358
         if (getDolGlobalInt("STOCK_CALCULATE_ON_RECEPTION_CLOSE")) {
1359 1359
             $this->labelStatus[1]  = 'StatusReceptionValidatedToReceive';
1360 1360
         }
1361
-        $this->labelStatus[2]  = 'StatusReceptionProcessed';
1361
+        $this->labelStatus[2] = 'StatusReceptionProcessed';
1362 1362
 
1363 1363
         // List of short language codes for status
1364 1364
         $this->labelStatusShort[-1] = 'StatusReceptionCanceledShort';
@@ -1454,7 +1454,7 @@  discard block
 block discarded – undo
1454 1454
         $this->origin_id            = 1;
1455 1455
         $this->origin               = 'commande';
1456 1456
         $this->origin_object        = $order;
1457
-        $this->commandeFournisseur  = $order;   // deprecated
1457
+        $this->commandeFournisseur  = $order; // deprecated
1458 1458
 
1459 1459
         $this->note_private = 'Private note';
1460 1460
         $this->note_public = 'Public note';
@@ -1464,7 +1464,7 @@  discard block
 block discarded – undo
1464 1464
         while ($xnbp < $nbp) {
1465 1465
             $line = new CommandeFournisseurDispatch($this->db);
1466 1466
             $line->desc = $langs->trans("Description") . " " . $xnbp;
1467
-            $line->libelle = $langs->trans("Description") . " " . $xnbp;    // deprecated
1467
+            $line->libelle = $langs->trans("Description") . " " . $xnbp; // deprecated
1468 1468
             $line->label = $langs->trans("Description") . " " . $xnbp;
1469 1469
             $line->qty = 10;
1470 1470
 
Please login to merge, or discard this patch.
htdocs/admin/mails.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     print '<tr class="oddeven"><td>' . $langs->trans("MAIN_MAIL_SENDMODE") . '</td><td>';
370 370
 
371 371
     // SuperAdministrator access only
372
-    if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
372
+    if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
373 373
         print $form->selectarray('MAIN_MAIL_SENDMODE', $listofmethods, getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'));
374 374
     } else {
375 375
         $text = $listofmethods[getDolGlobalString('MAIN_MAIL_SENDMODE')];
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         print '<tr class="oddeven smtp_oauth_service"><td>' . $langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE") . '</td><td>';
503 503
 
504 504
         // SuperAdministrator access only
505
-        if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
505
+        if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
506 506
             print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE', $oauthservices, $conf->global->MAIN_MAIL_SMTPS_OAUTH_SERVICE);
507 507
         } else {
508 508
             $text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE')];
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
         // AUTH method
700 700
         if (in_array(getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'), array('smtps', 'swiftmailer'))) {
701 701
             $authtype = getDolGlobalString('MAIN_MAIL_SMTPS_AUTH_TYPE', 'LOGIN');
702
-            $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '') ;
702
+            $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '');
703 703
             print '<tr class="oddeven"><td>' . $langs->trans("MAIN_MAIL_SMTPS_AUTH_TYPE") . '</td><td>' . $text . '</td></tr>';
704 704
         }
705 705
 
Please login to merge, or discard this patch.
htdocs/admin/eventorganization.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
 $value = GETPOST('value', 'alpha');
45 45
 $label = GETPOST('label', '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
 
48 48
 $scandir = GETPOST('scan_dir', 'alpha');
49 49
 $type = 'myobject';
50 50
 
51 51
 $arrayofparameters = array(
52
-    'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea','enabled' => 1),
52
+    'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea', 'enabled' => 1),
53 53
     'EVENTORGANIZATION_CATEG_THIRDPARTY_CONF' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1),
54 54
     'EVENTORGANIZATION_CATEG_THIRDPARTY_BOOTH' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1),
55 55
     'EVENTORGANIZATION_FILTERATTENDEES_CAT' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
  */
83 83
 
84 84
 if ($cancel) {
85
-    $action  = '';
85
+    $action = '';
86 86
 }
87 87
 
88 88
 include DOL_DOCUMENT_ROOT . '/core/actions_setmoduleoptions.inc.php';
Please login to merge, or discard this patch.
htdocs/admin/agenda_other.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
 $param = GETPOST('param', 'alpha');
50 50
 $cancel = GETPOST('cancel', 'alpha');
Please login to merge, or discard this patch.
htdocs/admin/workflow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
      * @param array{enabled:int<0,1>} $var
221 221
      * @return int<0,1>
222 222
      */
223
-    static function ($var) {
223
+    static function($var) {
224 224
         return $var['enabled'];
225 225
     }
226 226
 );
Please login to merge, or discard this patch.
htdocs/admin/expensereport_rules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 $langs->loadLangs(array("admin", "other", "trips", "errors", "dict"));
38 38
 
39 39
 // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
40
-$hookmanager->initHooks(array('admin', 'dictionaryadmin','expensereport_rules'));
40
+$hookmanager->initHooks(array('admin', 'dictionaryadmin', 'expensereport_rules'));
41 41
 
42 42
 $object = new ExpenseReportRule($db);
43 43
 
Please login to merge, or discard this patch.
htdocs/admin/limits.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         setEventMessages($langs->trans("ErrorValueCantBeNull", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors');
100 100
         $action = 'edit';
101 101
     }
102
-    if (! $error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) {
102
+    if (!$error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) {
103 103
         $langs->load("errors");
104 104
         $error++;
105 105
         setEventMessages($langs->trans("ErrorValueForTooLow", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors');
Please login to merge, or discard this patch.