| @@ 333-344 (lines=12) @@ | ||
| 330 | /** |
|
| 331 | * {@inheritdoc} |
|
| 332 | */ |
|
| 333 | protected function getReferencesInDirectory($path, $flags = 0) |
|
| 334 | { |
|
| 335 | $basePath = rtrim($path, '/'); |
|
| 336 | ||
| 337 | return $this->getReferencesForRegex( |
|
| 338 | $basePath.'/', |
|
| 339 | '~^'.preg_quote($basePath, '~').'/[^/]+$~', |
|
| 340 | $flags, |
|
| 341 | // Limit the directory exploration to the depth of the path + 1 |
|
| 342 | $this->getPathDepth($path) + 1 |
|
| 343 | ); |
|
| 344 | } |
|
| 345 | ||
| 346 | /** |
|
| 347 | * Flattens a two-level reference array into a one-level array. |
|
| @@ 222-231 (lines=10) @@ | ||
| 219 | /** |
|
| 220 | * {@inheritdoc} |
|
| 221 | */ |
|
| 222 | protected function getReferencesInDirectory($path, $flags = 0) |
|
| 223 | { |
|
| 224 | $basePath = rtrim($path, '/'); |
|
| 225 | ||
| 226 | return $this->getReferencesForRegex( |
|
| 227 | $basePath.'/', |
|
| 228 | '~^'.preg_quote($basePath, '~').'/[^/]+$~', |
|
| 229 | $flags |
|
| 230 | ); |
|
| 231 | } |
|
| 232 | ||
| 233 | /** |
|
| 234 | * {@inheritdoc} |
|