Passed
Push — master ( 225ed3...1df370 )
by Andrii
01:24
created
src/KDTree.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,10 +168,10 @@
 block discarded – undo
168 168
         $rightMin = $this->findMin($node->getRight(), $dimension, $nextDimension);
169 169
         $current = $node->getPoint()->getDAxis($dimension);
170 170
         $mins = array_filter([
171
-                                 null !== $leftMin ? $leftMin->getDAxis($dimension) : null => $leftMin,
172
-                                 null !== $rightMin ? $rightMin->getDAxis($dimension) : null => $rightMin,
173
-                                 $current  => $node->getPoint(),
174
-                             ]);
171
+                                    null !== $leftMin ? $leftMin->getDAxis($dimension) : null => $leftMin,
172
+                                    null !== $rightMin ? $rightMin->getDAxis($dimension) : null => $rightMin,
173
+                                    $current  => $node->getPoint(),
174
+                                ]);
175 175
         $minKey = min(array_keys($mins));
176 176
 
177 177
         return $mins[$minKey];
Please login to merge, or discard this patch.
src/ValueObject/Point.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         $result = array_reduce(
70 70
             range(0, $this->dimensions - 1),
71
-            function (float $result, int $dimension) use ($point) {
71
+            function(float $result, int $dimension) use ($point) {
72 72
                 return $result + ($point->getDAxis($dimension) - $this->getDAxis($dimension)) ** 2;
73 73
             },
74 74
             0.0
Please login to merge, or discard this patch.