@@ -54,6 +54,6 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function __toString() |
| 56 | 56 | { |
| 57 | - return 'object(' . get_class($this) . ')'; |
|
| 57 | + return 'object('.get_class($this).')'; |
|
| 58 | 58 | } |
| 59 | 59 | } |
@@ -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 | |
@@ -91,6 +91,6 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | public function __toString() |
| 93 | 93 | { |
| 94 | - return 'object(' . get_class($this) . ')'; |
|
| 94 | + return 'object('.get_class($this).')'; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -282,7 +282,7 @@ |
||
| 282 | 282 | */ |
| 283 | 283 | private function siftUp(int $leaf) |
| 284 | 284 | { |
| 285 | - for (; $leaf > 0; $leaf = $parent) { |
|
| 285 | + for (; $leaf > 0; $leaf = $parent) { |
|
| 286 | 286 | |
| 287 | 287 | $parent = $this->parent($leaf); |
| 288 | 288 | |
@@ -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 | |