| @@ 82-90 (lines=9) @@ | ||
| 79 | $reference = reset($reference); |
|
| 80 | } |
|
| 81 | ||
| 82 | if ($this->isFilesystemReference($reference)) { |
|
| 83 | $reference = Path::makeAbsolute($reference, $this->baseDirectory); |
|
| 84 | ||
| 85 | // Ignore non-existing files. Not sure this is the right |
|
| 86 | // thing to do. |
|
| 87 | if (!file_exists($reference)) { |
|
| 88 | return array(); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| 92 | return array($path => $reference); |
|
| 93 | } |
|
| @@ 129-137 (lines=9) @@ | ||
| 126 | $reference = reset($reference); |
|
| 127 | } |
|
| 128 | ||
| 129 | if ($this->isFilesystemReference($reference)) { |
|
| 130 | $reference = Path::makeAbsolute($reference, $this->baseDirectory); |
|
| 131 | ||
| 132 | // Ignore non-existing files. Not sure this is the right |
|
| 133 | // thing to do. |
|
| 134 | if (!file_exists($reference)) { |
|
| 135 | continue; |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | $result[$path] = $reference; |
|
| 140 | ||