@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @param array $items |
35 | 35 | */ |
36 | - public function __construct(array $items = []) |
|
36 | + public function __construct(array $items = [ ]) |
|
37 | 37 | { |
38 | 38 | $this->items = $items; |
39 | 39 | $this->rewind(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function set($key, $value) |
59 | 59 | { |
60 | - $this->items[$key] = $value; |
|
60 | + $this->items[ $key ] = $value; |
|
61 | 61 | |
62 | 62 | return $this; |
63 | 63 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | public function get($key, $default = null) |
74 | 74 | { |
75 | 75 | if ($this->containsKey($key)) { |
76 | - return $this->items[$key]; |
|
76 | + return $this->items[ $key ]; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return $default; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function containsKey($key) |
147 | 147 | { |
148 | - return isset($this->items[$key]) || array_key_exists($key, $this->items); |
|
148 | + return isset($this->items[ $key ]) || array_key_exists($key, $this->items); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function add($item) |
173 | 173 | { |
174 | - $this->items[] = $item; |
|
174 | + $this->items[ ] = $item; |
|
175 | 175 | |
176 | 176 | return $this; |
177 | 177 | } |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public function clear() |
205 | 205 | { |
206 | - $this->items = []; |
|
206 | + $this->items = [ ]; |
|
207 | 207 | |
208 | 208 | return $this; |
209 | 209 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | */ |
218 | 218 | public function remove($key) |
219 | 219 | { |
220 | - unset($this->items[$key]); |
|
220 | + unset($this->items[ $key ]); |
|
221 | 221 | |
222 | 222 | return $this; |
223 | 223 | } |
@@ -234,8 +234,8 @@ discard block |
||
234 | 234 | if (!$this->containsKey($key)) { |
235 | 235 | return null; |
236 | 236 | } |
237 | - $removed = $this->items[$key]; |
|
238 | - unset($this->items[$key]); |
|
237 | + $removed = $this->items[ $key ]; |
|
238 | + unset($this->items[ $key ]); |
|
239 | 239 | |
240 | 240 | return $removed; |
241 | 241 | } |
@@ -728,8 +728,8 @@ discard block |
||
728 | 728 | $collection = Factory::create($items); |
729 | 729 | |
730 | 730 | return $this->map( |
731 | - function ($value, $key, $index) use ($collection) { |
|
732 | - return [$value, $collection->atIndex($index)]; |
|
731 | + function($value, $key, $index) use ($collection) { |
|
732 | + return [ $value, $collection->atIndex($index) ]; |
|
733 | 733 | } |
734 | 734 | ); |
735 | 735 | } |
@@ -840,7 +840,7 @@ discard block |
||
840 | 840 | } |
841 | 841 | |
842 | 842 | return $this->prune( |
843 | - function ($value, $key, $index) use ($offset, $length) { |
|
843 | + function($value, $key, $index) use ($offset, $length) { |
|
844 | 844 | return !(($index >= $offset) && ($index < $offset + $length)); |
845 | 845 | } |
846 | 846 | ); |