| @@ 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. |
|
| @@ 194-203 (lines=10) @@ | ||
| 191 | /** |
|
| 192 | * {@inheritdoc} |
|
| 193 | */ |
|
| 194 | protected function getReferencesInDirectory($path, $flags = 0) |
|
| 195 | { |
|
| 196 | $basePath = rtrim($path, '/'); |
|
| 197 | ||
| 198 | return $this->getReferencesForRegex( |
|
| 199 | $basePath.'/', |
|
| 200 | '~^'.preg_quote($basePath, '~').'/[^/]+$~', |
|
| 201 | $flags |
|
| 202 | ); |
|
| 203 | } |
|
| 204 | ||
| 205 | /** |
|
| 206 | * {@inheritdoc} |
|