Passed
Push — master ( 7096ae...8c439c )
by Evgenii
08:34
created
src/OrderStatusDispatcher.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@  discard block
 block discarded – undo
46 46
             $itemsCount = sizeof($matches[0]);
47 47
             for ($i = 0; $i < $itemsCount; $i++) {
48 48
                 $barcode = $matches[1][$i];
49
-                if (empty($barcode))
50
-                    continue;
49
+                if (empty($barcode)) {
50
+                                    continue;
51
+                }
51 52
                 $return = boolval($matches[2][$i]);
52 53
                 $this->items[$barcode] = (new Item())
53 54
                     ->setBarcode($barcode)
@@ -62,8 +63,9 @@  discard block
 block discarded – undo
62 63
      */
63 64
     public function isItemReturned($barcode): ?bool
64 65
     {
65
-        if (isset($this->items[$barcode]))
66
-            return $this->items[$barcode]->isReturned();
66
+        if (isset($this->items[$barcode])) {
67
+                    return $this->items[$barcode]->isReturned();
68
+        }
67 69
         return null;
68 70
     }
69 71
 
Please login to merge, or discard this patch.