Completed
Push — master ( 74caa6...f52c87 )
by Ventaquil
02:09
created
src/Dijkstra/Path.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
         return $this;
33 33
     }
34 34
 
35
+    /**
36
+     * @param integer $distance
37
+     */
35 38
     public function checkDistance($distance)
36 39
     {
37 40
         if (!is_numeric($distance) && ($distance <= 0)) {
Please login to merge, or discard this patch.
src/Dijkstra.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
             if (!is_null($relation)) {
95 95
                 $point = $relation->to
96
-                                  ->id;
96
+                                    ->id;
97 97
             } else {
98 98
                 $point = $paths[$point]->nodes[0];
99 99
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             if (isset($paths[$relation->to->id])) {
144 144
                 if ($paths[$relation->to->id]->distance > ($paths[$point]->distance + $relation->distance)) {
145 145
                     $paths[$relation->to->id]->copy($paths[$point])
146
-                                             ->addNode($relation->to->id, $relation->distance);
146
+                                                ->addNode($relation->to->id, $relation->distance);
147 147
                 }
148 148
             } else {
149 149
                 $paths[$relation->to->id] = (new Path())->copy($paths[$point])
Please login to merge, or discard this patch.