@@ -236,14 +236,14 @@ discard block |
||
| 236 | 236 | return; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | - $swap = function (&$a, &$b) { |
|
| 239 | + $swap = function(&$a, &$b) { |
|
| 240 | 240 | $t = $a; |
| 241 | 241 | $a = $b; |
| 242 | 242 | $b = $t; |
| 243 | 243 | }; |
| 244 | 244 | |
| 245 | 245 | // Reverses a range within the internal array |
| 246 | - $reverse = function (int $a, int $b) use ($swap) { |
|
| 246 | + $reverse = function(int $a, int $b) use ($swap) { |
|
| 247 | 247 | while (--$b > $a) { |
| 248 | 248 | $swap($this->internal[$a++], $this->internal[$b--]); |
| 249 | 249 | } |
@@ -260,9 +260,9 @@ discard block |
||
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | if ($r > 0) { |
| 263 | - $reverse(0, $r); |
|
| 263 | + $reverse(0, $r); |
|
| 264 | 264 | $reverse($r, $n); |
| 265 | - $reverse(0, $n); |
|
| 265 | + $reverse(0, $n); |
|
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function clear() |
| 45 | 45 | { |
| 46 | - $this->pairs = []; |
|
| 46 | + $this->pairs = []; |
|
| 47 | 47 | $this->capacity = self::MIN_CAPACITY; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | private function identical($a, $b): bool |
| 211 | 211 | { |
| 212 | - if (is_object($a) && $a instanceof Hashable){ |
|
| 212 | + if (is_object($a) && $a instanceof Hashable) { |
|
| 213 | 213 | return $a->equals($b); |
| 214 | 214 | } |
| 215 | 215 | |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | */ |
| 210 | 210 | private function identical($a, $b): bool |
| 211 | 211 | { |
| 212 | - if (is_object($a) && $a instanceof Hashable){ |
|
| 212 | + if (is_object($a) && $a instanceof Hashable) { |
|
| 213 | 213 | return $a->equals($b); |
| 214 | 214 | } |
| 215 | 215 | |