| @@ 307-318 (lines=12) @@ | ||
| 304 | /** |
|
| 305 | * {@inheritdoc} |
|
| 306 | */ |
|
| 307 | protected function getReferencesInDirectory($path, $flags = 0) |
|
| 308 | { |
|
| 309 | $basePath = rtrim($path, '/'); |
|
| 310 | ||
| 311 | return $this->getReferencesForRegex( |
|
| 312 | $basePath.'/', |
|
| 313 | '~^'.preg_quote($basePath, '~').'/[^/]+$~', |
|
| 314 | $flags, |
|
| 315 | // Limit the directory exploration to the depth of the path + 1 |
|
| 316 | $this->getPathDepth($path) + 1 |
|
| 317 | ); |
|
| 318 | } |
|
| 319 | ||
| 320 | /** |
|
| 321 | * Flattens a two-level reference array into a one-level array. |
|
| @@ 163-172 (lines=10) @@ | ||
| 160 | /** |
|
| 161 | * {@inheritdoc} |
|
| 162 | */ |
|
| 163 | protected function getReferencesInDirectory($path, $flags = 0) |
|
| 164 | { |
|
| 165 | $basePath = rtrim($path, '/'); |
|
| 166 | ||
| 167 | return $this->getReferencesForRegex( |
|
| 168 | $basePath.'/', |
|
| 169 | '~^'.preg_quote($basePath, '~').'/[^/]+$~', |
|
| 170 | $flags |
|
| 171 | ); |
|
| 172 | } |
|
| 173 | ||
| 174 | /** |
|
| 175 | * {@inheritdoc} |
|