| @@ 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} |
|
| @@ 254-266 (lines=13) @@ | ||
| 251 | /** |
|
| 252 | * {@inheritdoc} |
|
| 253 | */ |
|
| 254 | protected function getReferencesForGlob($glob, $stopOnFirst = false, $traverseDirectories = true) |
|
| 255 | { |
|
| 256 | if (!Glob::isDynamic($glob)) { |
|
| 257 | return $this->getReferencesForPath($glob); |
|
| 258 | } |
|
| 259 | ||
| 260 | return $this->getReferencesForRegex( |
|
| 261 | Glob::getBasePath($glob), |
|
| 262 | Glob::toRegEx($glob), |
|
| 263 | $stopOnFirst, |
|
| 264 | $traverseDirectories |
|
| 265 | ); |
|
| 266 | } |
|
| 267 | ||
| 268 | /** |
|
| 269 | * {@inheritdoc} |
|