@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * @param Node $to |
115 | 115 | * @return null|Connection |
116 | 116 | */ |
117 | - public function getNearestConnection(Node $from, Node $to) : ?Connection |
|
117 | + public function getNearestConnection(Node $from, Node $to) : ? Connection |
|
118 | 118 | { |
119 | 119 | /** |
120 | 120 | * @var null|Connection $nearest |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @param Node $to |
140 | 140 | * @return null|float |
141 | 141 | */ |
142 | - public function getNearestDistance(Node $from, Node $to) : ?float |
|
142 | + public function getNearestDistance(Node $from, Node $to) : ? float |
|
143 | 143 | { |
144 | 144 | $nearest = $this->getNearestConnection($from, $to); |
145 | 145 |