@@ 214-227 (lines=14) @@ | ||
211 | /** |
|
212 | * {@inheritdoc} |
|
213 | */ |
|
214 | public function hasPluginClasses(Expression $expr = null) |
|
215 | { |
|
216 | if (!$expr) { |
|
217 | return $this->rootModuleFile->hasPluginClasses(); |
|
218 | } |
|
219 | ||
220 | foreach ($this->rootModuleFile->getPluginClasses() as $pluginClass) { |
|
221 | if ($expr->evaluate($pluginClass)) { |
|
222 | return true; |
|
223 | } |
|
224 | } |
|
225 | ||
226 | return false; |
|
227 | } |
|
228 | ||
229 | /** |
|
230 | * {@inheritdoc} |
|
@@ 402-415 (lines=14) @@ | ||
399 | /** |
|
400 | * {@inheritdoc} |
|
401 | */ |
|
402 | public function hasExtraKeys(Expression $expr = null) |
|
403 | { |
|
404 | if (!$expr) { |
|
405 | return $this->rootModuleFile->hasExtraKeys(); |
|
406 | } |
|
407 | ||
408 | foreach ($this->rootModuleFile->getExtraKeys() as $key => $value) { |
|
409 | if ($expr->evaluate($key)) { |
|
410 | return true; |
|
411 | } |
|
412 | } |
|
413 | ||
414 | return false; |
|
415 | } |
|
416 | ||
417 | /** |
|
418 | * {@inheritdoc} |