Passed
Push — main ( d8f8f2...7eb3b3 )
by Rafael
47:22
created
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.
htdocs/admin/ticket.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
 // Parameters
44 44
 $value = GETPOST('value', 'alpha');
45 45
 $action = GETPOST('action', 'aZ09');
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
 $label = GETPOST('label', 'alpha');
49 49
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.