@@ -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 | ) |
@@ -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 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | protected function decreaseCapacity() |
| 92 | 92 | { |
| 93 | - $this->capacity = max(self::MIN_CAPACITY, $this->capacity * $this->getDecayFactor()); |
|
| 93 | + $this->capacity = max(self::MIN_CAPACITY, $this->capacity * $this->getDecayFactor()); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |