@@ -94,7 +94,7 @@ |
||
94 | 94 | |
95 | 95 | private function reset(): void |
96 | 96 | { |
97 | - $this->bestDistance = (float)PHP_INT_MAX; |
|
97 | + $this->bestDistance = (float) PHP_INT_MAX; |
|
98 | 98 | $this->closestPoint = null; |
99 | 99 | $this->visited = 0; |
100 | 100 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | $result = array_reduce( |
73 | 73 | range(0, $this->dimensions - 1), |
74 | - function (float $result, int $dimension) use ($point): float { |
|
74 | + function(float $result, int $dimension) use ($point): float { |
|
75 | 75 | return $result + ($point->getDAxis($dimension) - $this->getDAxis($dimension)) ** 2; |
76 | 76 | }, |
77 | 77 | 0.0 |