Passed
Branch master (73f5b7)
by Jesse
02:57
created
Category
src/Graph/Ids.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
         return new self(...$labels);
22 22
     }
23 23
 
24
-    public static function for(Vertex ...$vertices): Labels
24
+    public static function for (Vertex ...$vertices): Labels
25 25
     {
26
-        return new self(...array_map(function (Vertex $vertex): string {
26
+        return new self(...array_map(function(Vertex $vertex): string {
27 27
             return $vertex->label();
28 28
         }, $vertices));
29 29
     }
Please login to merge, or discard this patch.
src/Graph/Graph.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
     private function __construct(Vertex ...$vertices)
18 18
     {
19 19
         $this->vertices = array_combine(
20
-            array_map(function (Vertex $vertex): string {
20
+            array_map(function(Vertex $vertex): string {
21 21
                 return $vertex->label();
22 22
             }, $vertices),
23 23
             $vertices
24 24
         );
25
-        $this->ids = Ids::for(...$vertices);
25
+        $this->ids = Ids::for (...$vertices);
26 26
     }
27 27
 
28 28
     public static function with(Vertex ...$vertices): Network
Please login to merge, or discard this patch.
src/Graph/Builder/GridEnvironment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     {
112 112
         return Roads::available(...array_reduce(
113 113
             self::MOVEMENT[$this->allowDiagonal],
114
-            function (Edges $result, array $add) use ($row, $column): Edges {
114
+            function(Edges $result, array $add) use ($row, $column): Edges {
115 115
                 return $this->addIfAvailable(
116 116
                     $result,
117 117
                     $row + $add['x'],
Please login to merge, or discard this patch.
src/Graph/Builder/MultipleEdges.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         return array_reduce(
34 34
             $this->edges,
35
-            function (Edges $carry, EdgeDefinition $edge): Edges {
35
+            function(Edges $carry, EdgeDefinition $edge): Edges {
36 36
                 return $carry->merge($edge->gather());
37 37
             },
38 38
             Roads::none()
Please login to merge, or discard this patch.
src/Graph/GeometricGraph.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
     private function __construct(GeometricVertex ...$vertices)
19 19
     {
20 20
         $this->vertices = array_combine(
21
-            array_map(function (Vertex $vertex): string {
21
+            array_map(function(Vertex $vertex): string {
22 22
                 return $vertex->label();
23 23
             }, $vertices),
24 24
             $vertices
25 25
         );
26
-        $this->ids = Ids::for(...$vertices);
26
+        $this->ids = Ids::for (...$vertices);
27 27
     }
28 28
 
29 29
     public static function with(GeometricVertex ...$vertices): Environment
Please login to merge, or discard this patch.