@@ -26,8 +26,8 @@ |
||
26 | 26 | */ |
27 | 27 | public function change(int $index, $newItem) |
28 | 28 | { |
29 | - $items = $this->items(); |
|
30 | - $items[$index] = $newItem; |
|
29 | + $items=$this->items(); |
|
30 | + $items[$index]=$newItem; |
|
31 | 31 | return $this->newCopy($items); |
32 | 32 | } |
33 | 33 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function delete(int $index) |
27 | 27 | { |
28 | - $items = $this->items(); |
|
28 | + $items=$this->items(); |
|
29 | 29 | unset($items[$index]); |
30 | 30 | return $this->newCopy($items); |
31 | 31 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | return $this->newCopy(array_filter( |
41 | 41 | $this->items(), |
42 | - function ($item) use ($itemsToRemove) { |
|
42 | + function($item) use ($itemsToRemove) { |
|
43 | 43 | return !in_array($item, $itemsToRemove, true); |
44 | 44 | } |
45 | 45 | )); |