@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | if (!is_null($relation)) { |
84 | 84 | $point = $relation->to |
85 | - ->id; |
|
85 | + ->id; |
|
86 | 86 | } else { |
87 | 87 | $point = null; |
88 | 88 | } |
@@ -128,12 +128,12 @@ discard block |
||
128 | 128 | if (isset($paths[$relation->to->id])) { |
129 | 129 | if ($paths[$relation->to->id]->distance > ($paths[$point]->distance + $relation->distance)) { |
130 | 130 | $paths[$relation->to->id]->copy($paths[$point]) |
131 | - ->addNode($relation->to->id, $relation->distance); |
|
131 | + ->addNode($relation->to->id, $relation->distance); |
|
132 | 132 | } |
133 | 133 | } else { |
134 | 134 | $paths[$relation->to->id] = new Path(); |
135 | 135 | $paths[$relation->to->id]->copy($paths[$point]) |
136 | - ->addNode($relation->to->id, $relation->distance); |
|
136 | + ->addNode($relation->to->id, $relation->distance); |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | } |