Passed
Push — main ( 7eb3b3...9a81fe )
by Rafael
42:16
created
Dolibarr/Modules/Bom/Views/bom_card.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
     if (!empty($object->table_element_line)) {
288 288
         // Products
289
-        $res = $object->fetchLinesbytypeproduct(0);     // Load all lines products into ->lines
289
+        $res = $object->fetchLinesbytypeproduct(0); // Load all lines products into ->lines
290 290
         $object->calculateCosts();
291 291
 
292 292
         print ($res == 0 && $object->status >= $object::STATUS_VALIDATED) ? '' : load_fiche_titre($langs->trans('BOMProductsList'), '', 'product');
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 
339 339
         // Services
340 340
         $filtertype = 1;
341
-        $res = $object->fetchLinesbytypeproduct(1);     // Load all lines services into ->lines
341
+        $res = $object->fetchLinesbytypeproduct(1); // Load all lines services into ->lines
342 342
         $object->calculateCosts();
343 343
 
344 344
         print ($res == 0 && $object->status >= $object::STATUS_VALIDATED) ? '' : load_fiche_titre($langs->trans('BOMServicesList'), '', 'service');
Please login to merge, or discard this patch.
Dolibarr/Modules/Bom/Views/bom_list.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
     } elseif (in_array($val['type'], ['double(24,8)', 'double(6,3)', 'integer', 'real', 'price']) && !in_array($key, ['id', 'rowid', 'ref', 'status']) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
361 361
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
362 362
     }
363
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
363
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
364 364
     if (!empty($arrayfields['t.' . $key]['checked'])) {
365 365
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
366 366
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
Dolibarr/Modules/Bom/Controller/BomListController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'bomlist'; // To manage different context of search
75 75
         $backtopage = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page
76 76
         $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
77
-        $mode = GETPOST('mode', 'aZ');  // mode view (kanban or common)
77
+        $mode = GETPOST('mode', 'aZ'); // mode view (kanban or common)
78 78
 
79 79
 
80 80
 // Load variable for pagination
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
 // Default sort order (if not yet defined by previous GETPOST)
107 107
         if (!$sortfield) {
108
-            reset($object->fields);                 // Reset is required to avoid key() to return null.
108
+            reset($object->fields); // Reset is required to avoid key() to return null.
109 109
             $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
110 110
         }
111 111
         if (!$sortorder) {
Please login to merge, or discard this patch.