@@ -46,8 +46,9 @@ discard block |
||
| 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 |
||
| 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 | |