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