Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/accountancy/class/lettering.class.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -318,11 +318,15 @@
 block discarded – undo
318 318
         $resql = $this->db->query($sql);
319 319
         if ($resql) {
320 320
             while ($obj = $this->db->fetch_object($resql)) {
321
-                if (empty($obj->lettering_code)) continue;
321
+                if (empty($obj->lettering_code)) {
322
+                    continue;
323
+                }
322 324
 
323 325
                 // Remove normal lettering code if set partial lettering
324 326
                 if ($partial && preg_match('/^[A-Z]+$/', $obj->lettering_code)) {
325
-                    if (!empty($obj->bookkeeping_ids)) $ids = array_diff($ids, explode(',', $obj->bookkeeping_ids));
327
+                    if (!empty($obj->bookkeeping_ids)) {
328
+                        $ids = array_diff($ids, explode(',', $obj->bookkeeping_ids));
329
+                    }
326 330
                 } elseif (!$partial && preg_match('/^[a-z]+$/', $obj->lettering_code)) {
327 331
                     // Delete partial lettering code if set normal lettering
328 332
                     $sql2 = "UPDATE " . MAIN_DB_PREFIX . "accounting_bookkeeping SET";
Please login to merge, or discard this patch.
public/htdocs/expedition/card.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1437,7 +1437,9 @@
 block discarded – undo
1437 1437
                                         $deliverableQty = min($quantityToBeDelivered, $batchStock);
1438 1438
                                     }
1439 1439
 
1440
-                                    if ($deliverableQty < 0) $deliverableQty = 0;
1440
+                                    if ($deliverableQty < 0) {
1441
+                                        $deliverableQty = 0;
1442
+                                    }
1441 1443
 
1442 1444
                                     $inputName = 'qtyl' . $indiceAsked . '_' . $subj;
1443 1445
                                     if (GETPOSTISSET($inputName)) {
Please login to merge, or discard this patch.
public/htdocs/expedition/list.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -444,8 +444,10 @@
 block discarded – undo
444 444
                             );
445 445
                             if ($result > 0) {
446 446
                                 $lineid = $result;
447
-                                if (!empty($createbills_onebythird)) //increment rang to keep sending
447
+                                if (!empty($createbills_onebythird)) {
448
+                                    //increment rang to keep sending
448 449
                                     $TFactThirdNbLines[$expd->socid]++;
450
+                                }
449 451
                             } else {
450 452
                                 $lineid = 0;
451 453
                                 $error++;
Please login to merge, or discard this patch.