Code Duplication    Length = 14-14 lines in 2 locations

src/Cache/CacheManagerImpl.php 1 location

@@ 174-187 (lines=14) @@
171
    /**
172
     * {@inheritdoc}
173
     */
174
    public function findModules(Expression $expr)
175
    {
176
        $this->assertModulesLoaded();
177
178
        $modules = new ModuleList();
179
180
        foreach ($this->modules as $module) {
181
            if ($expr->evaluate($module)) {
182
                $modules->add($module);
183
            }
184
        }
185
186
        return $modules;
187
    }
188
189
    /**
190
     * {@inheritdoc}

src/Module/ModuleManagerImpl.php 1 location

@@ 278-291 (lines=14) @@
275
    /**
276
     * {@inheritdoc}
277
     */
278
    public function findModules(Expression $expr)
279
    {
280
        $this->assertModulesLoaded();
281
282
        $modules = new ModuleList();
283
284
        foreach ($this->modules as $module) {
285
            if ($expr->evaluate($module)) {
286
                $modules->add($module);
287
            }
288
        }
289
290
        return $modules;
291
    }
292
293
    /**
294
     * {@inheritdoc}