Passed
Push — master ( ef3008...9b80d6 )
by Witali
02:00
created
src/Grid.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,16 +38,16 @@
 block discarded – undo
38 38
         $y = $node->getY();
39 39
 
40 40
         $neighbourLocations = [
41
-            [$y - 1, $x],
42
-            [$y + 1, $x],
43
-            [$y, $x - 1],
44
-            [$y, $x + 1]
41
+            [$y-1, $x],
42
+            [$y+1, $x],
43
+            [$y, $x-1],
44
+            [$y, $x+1]
45 45
         ];
46 46
         if ($diagonal) {
47
-            $neighbourLocations[] = [$y - 1, $x - 1];
48
-            $neighbourLocations[] = [$y + 1, $x - 1];
49
-            $neighbourLocations[] = [$y - 1, $x + 1];
50
-            $neighbourLocations[] = [$y + 1, $x + 1];
47
+            $neighbourLocations[] = [$y-1, $x-1];
48
+            $neighbourLocations[] = [$y+1, $x-1];
49
+            $neighbourLocations[] = [$y-1, $x+1];
50
+            $neighbourLocations[] = [$y+1, $x+1];
51 51
         }
52 52
 
53 53
         foreach ($neighbourLocations as $location) {
Please login to merge, or discard this patch.