@@ -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 | ) |
@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | protected function decreaseCapacity() |
87 | 87 | { |
88 | - $this->setSize(max(self::MIN_CAPACITY, $this->getSize() * $this->getDecayFactor())); |
|
88 | + $this->setSize(max(self::MIN_CAPACITY, $this->getSize() * $this->getDecayFactor())); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function get(int $index) |
112 | 112 | { |
113 | - if (! $this->validIndex($index)) { |
|
113 | + if (!$this->validIndex($index)) { |
|
114 | 114 | throw new OutOfRangeException(); |
115 | 115 | } |
116 | 116 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function insert(int $index, ...$values) |
124 | 124 | { |
125 | - if (! $this->validIndex($index) && $index !== $this->count()) { |
|
125 | + if (!$this->validIndex($index) && $index !== $this->count()) { |
|
126 | 126 | throw new OutOfRangeException(); |
127 | 127 | } |
128 | 128 |