@@ -8,9 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | class Cart extends SplObjectStorage implements CartInterface |
| 10 | 10 | { |
| 11 | - public function __construct(array $items = []) |
|
| 11 | + public function __construct(array $items = [ ]) |
|
| 12 | 12 | { |
| 13 | - array_walk($items, [ $this, 'attach']); |
|
| 13 | + array_walk($items, [ $this, 'attach' ]); |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | public function addItem(ItemInterface $item): bool |