| @@ 98-109 (lines=12) @@ | ||
| 95 | /** |
|
| 96 | * {@inheritdoc} |
|
| 97 | */ |
|
| 98 | protected function getReferencesForGlob($glob, $stopOnFirst = false) |
|
| 99 | { |
|
| 100 | if (!Glob::isDynamic($glob)) { |
|
| 101 | return $this->getReferencesForPath($glob); |
|
| 102 | } |
|
| 103 | ||
| 104 | return $this->getReferencesForRegex( |
|
| 105 | Glob::getStaticPrefix($glob), |
|
| 106 | Glob::toRegEx($glob), |
|
| 107 | $stopOnFirst |
|
| 108 | ); |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * {@inheritdoc} |
|
| @@ 282-294 (lines=13) @@ | ||
| 279 | /** |
|
| 280 | * {@inheritdoc} |
|
| 281 | */ |
|
| 282 | protected function getReferencesForGlob($glob, $stopOnFirst = false, $traverseDirectories = true) |
|
| 283 | { |
|
| 284 | if (!Glob::isDynamic($glob)) { |
|
| 285 | return $this->getReferencesForPath($glob); |
|
| 286 | } |
|
| 287 | ||
| 288 | return $this->getReferencesForRegex( |
|
| 289 | Glob::getBasePath($glob), |
|
| 290 | Glob::toRegEx($glob), |
|
| 291 | $stopOnFirst, |
|
| 292 | $traverseDirectories |
|
| 293 | ); |
|
| 294 | } |
|
| 295 | ||
| 296 | /** |
|
| 297 | * {@inheritdoc} |
|