Code Duplication    Length = 8-8 lines in 2 locations

src/Mvc/ApplicationPackage.php 2 locations

@@ 93-100 (lines=8) @@
90
91
        $c[PlatesEngine::class] = $viewEngine;
92
93
        $c[NotFoundDecorator::class] = $c->factory(function (Container $c) {
94
            $layout = $c->get('default_layout');
95
            $viewEngine = $c->get(PlatesEngine::class);
96
            $notFoundDecorator = new NotFoundDecorator($viewEngine);
97
            $notFoundDecorator->setLayout($layout);
98
99
            return $notFoundDecorator;
100
        });
101
102
        $c[NotAllowedDecorator::class] = $c->factory(function (Container $c) {
103
            $layout = $c->get('default_layout');
@@ 102-109 (lines=8) @@
99
            return $notFoundDecorator;
100
        });
101
102
        $c[NotAllowedDecorator::class] = $c->factory(function (Container $c) {
103
            $layout = $c->get('default_layout');
104
            $viewEngine = $c->get(PlatesEngine::class);
105
            $notAllowedDecorator = new NotAllowedDecorator($viewEngine);
106
            $notAllowedDecorator->setLayout($layout);
107
108
            return $notAllowedDecorator;
109
        });
110
111
        $c[PlatesStrategy::class] = $c->factory(function (Container $c) {
112
            $viewEngine = $c->get(PlatesEngine::class);