Code Duplication    Length = 14-14 lines in 2 locations

src/Module/RootModuleFileManagerImpl.php 2 locations

@@ 213-226 (lines=14) @@
210
    /**
211
     * {@inheritdoc}
212
     */
213
    public function hasPluginClasses(Expression $expr = null)
214
    {
215
        if (!$expr) {
216
            return $this->rootModuleFile->hasPluginClasses();
217
        }
218
219
        foreach ($this->rootModuleFile->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->rootModuleFile->hasExtraKeys();
405
        }
406
407
        foreach ($this->rootModuleFile->getExtraKeys() as $key => $value) {
408
            if ($expr->evaluate($key)) {
409
                return true;
410
            }
411
        }
412
413
        return false;
414
    }
415
416
    /**
417
     * {@inheritdoc}