@@ -41,8 +41,8 @@ |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * {@inheritdoc} |
|
| 45 | - */ |
|
| 44 | + * {@inheritdoc} |
|
| 45 | + */ |
|
| 46 | 46 | public function setValue($value) |
| 47 | 47 | { |
| 48 | 48 | $this->value = $value; |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | return array_values( |
| 173 | 173 | array_filter( |
| 174 | 174 | $neighbors, |
| 175 | - function ($item) use ($current) { |
|
| 175 | + function($item) use ($current) { |
|
| 176 | 176 | return $item != $current; |
| 177 | 177 | } |
| 178 | 178 | ) |
@@ -88,8 +88,8 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @inheritDoc |
|
| 92 | - */ |
|
| 91 | + * @inheritDoc |
|
| 92 | + */ |
|
| 93 | 93 | public function first() |
| 94 | 94 | { |
| 95 | 95 | if ($this->isEmpty()) { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function get(int $index) |
| 106 | 106 | { |
| 107 | - if (! $this->validIndex($index)) { |
|
| 107 | + if (!$this->validIndex($index)) { |
|
| 108 | 108 | throw new OutOfRangeException(); |
| 109 | 109 | } |
| 110 | 110 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function insert(int $index, ...$values) |
| 118 | 118 | { |
| 119 | - if (! $this->validIndex($index) && $index !== count($this)) { |
|
| 119 | + if (!$this->validIndex($index) && $index !== count($this)) { |
|
| 120 | 120 | throw new OutOfRangeException(); |
| 121 | 121 | } |
| 122 | 122 | } |
@@ -169,12 +169,12 @@ discard block |
||
| 169 | 169 | public function reduce(callable $callback, $accumulator = null); |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | - * Take a slice of the array |
|
| 173 | - * |
|
| 174 | - * @param int $begin Start index of slice |
|
| 175 | - * @param int $end End index of slice |
|
| 176 | - * @return Sequenceable |
|
| 177 | - */ |
|
| 172 | + * Take a slice of the array |
|
| 173 | + * |
|
| 174 | + * @param int $begin Start index of slice |
|
| 175 | + * @param int $end End index of slice |
|
| 176 | + * @return Sequenceable |
|
| 177 | + */ |
|
| 178 | 178 | public function slice(int $begin = 0, int $end = null); |
| 179 | 179 | |
| 180 | 180 | /** |
@@ -186,13 +186,13 @@ discard block |
||
| 186 | 186 | public function sort(callable $callback = null); |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * forEach, or "walk" the data |
|
| 190 | - * Exists primarily to provide a consistent interface, though it's seldom |
|
| 191 | - * any better than a simple php foreach. Mainly useful for chaining. |
|
| 192 | - * Named walk for historic reasons - forEach is reserved in PHP |
|
| 193 | - * |
|
| 194 | - * @param callable $callback Function to call on each element |
|
| 195 | - * @return Sequenceable |
|
| 196 | - */ |
|
| 189 | + * forEach, or "walk" the data |
|
| 190 | + * Exists primarily to provide a consistent interface, though it's seldom |
|
| 191 | + * any better than a simple php foreach. Mainly useful for chaining. |
|
| 192 | + * Named walk for historic reasons - forEach is reserved in PHP |
|
| 193 | + * |
|
| 194 | + * @param callable $callback Function to call on each element |
|
| 195 | + * @return Sequenceable |
|
| 196 | + */ |
|
| 197 | 197 | public function walk(callable $callback); |
| 198 | 198 | } |