@@ 284-286 (lines=3) @@ | ||
281 | */ |
|
282 | public function findShortestPath($from, $to, $directories = false) |
|
283 | { |
|
284 | if (!$this->isAbsolutePath($from) || !$this->isAbsolutePath($to)) { |
|
285 | throw new \InvalidArgumentException(sprintf('$from (%s) and $to (%s) must be absolute paths.', $from, $to)); |
|
286 | } |
|
287 | ||
288 | $from = lcfirst($this->normalizePath($from)); |
|
289 | $to = lcfirst($this->normalizePath($to)); |
|
@@ 328-330 (lines=3) @@ | ||
325 | */ |
|
326 | public function findShortestPathCode($from, $to, $directories = false) |
|
327 | { |
|
328 | if (!$this->isAbsolutePath($from) || !$this->isAbsolutePath($to)) { |
|
329 | throw new \InvalidArgumentException(sprintf('$from (%s) and $to (%s) must be absolute paths.', $from, $to)); |
|
330 | } |
|
331 | ||
332 | $from = lcfirst($this->normalizePath($from)); |
|
333 | $to = lcfirst($this->normalizePath($to)); |