Code Duplication    Length = 8-8 lines in 2 locations

src/Mvc/ApplicationPackage.php 2 locations

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