@@ -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 | } |
@@ -128,13 +128,13 @@ |
||
128 | 128 | public function unknownDimensionProvider(): Generator |
129 | 129 | { |
130 | 130 | yield 'min' => [ |
131 | - 'fn' => static function (Partition $partition) { |
|
131 | + 'fn' => static function(Partition $partition) { |
|
132 | 132 | $partition->getDMin(5); |
133 | 133 | } |
134 | 134 | ]; |
135 | 135 | |
136 | 136 | yield 'max' => [ |
137 | - 'fn' => static function (Partition $partition) { |
|
137 | + 'fn' => static function(Partition $partition) { |
|
138 | 138 | $partition->getDMax(5); |
139 | 139 | } |
140 | 140 | ]; |
@@ -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 |