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