Code Duplication    Length = 4-4 lines in 2 locations

tests/Component/AppKernel.php 1 location

@@ 244-247 (lines=4) @@
241
            ->setPublic(false);
242
        $c->setAlias(EngineInterface::class, TwigEngine::class);
243
244
        if (in_array($this->getEnvironment(), ['test'], true)) {
245
            $c->autowire('test.client', Client::class)
246
                ->setPublic(true); // Public needed!
247
        }
248
249
        //Controllers
250
        $c->autowire(EngineAsArgumentController::class)

tests/Framework/src/AppKernel.php 1 location

@@ 68-71 (lines=4) @@
65
            ->setPublic(false);
66
        $c->setAlias(EngineInterface::class, TwigEngine::class);
67
68
        if (in_array($this->getEnvironment(), ['test'], true)) {
69
            $c->autowire('test.client', Client::class)
70
                ->setPublic(true); // Public needed!
71
        }
72
73
        //Controllers
74
        $c->autowire(EngineAsArgumentController::class)