Code Duplication    Length = 9-9 lines in 3 locations

src/Mvc/ApplicationPackage.php 3 locations

@@ 106-114 (lines=9) @@
103
104
        $c[PlatesEngine::class] = $viewEngine;
105
106
        $c[NotFoundDecorator::class] = $c->factory(function (Container $c) {
107
            $layout = $c->get('default_layout');
108
            $templates = $c->get('error_pages');
109
            $viewEngine = $c->get(PlatesEngine::class);
110
            $notFoundDecorator = new NotFoundDecorator($viewEngine, $templates);
111
            $notFoundDecorator->setLayout($layout);
112
113
            return $notFoundDecorator;
114
        });
115
116
        $c[NotAllowedDecorator::class] = $c->factory(function (Container $c) {
117
            $layout = $c->get('default_layout');
@@ 116-124 (lines=9) @@
113
            return $notFoundDecorator;
114
        });
115
116
        $c[NotAllowedDecorator::class] = $c->factory(function (Container $c) {
117
            $layout = $c->get('default_layout');
118
            $templates = $c->get('error_pages');
119
            $viewEngine = $c->get(PlatesEngine::class);
120
            $notAllowedDecorator = new NotAllowedDecorator($viewEngine, $templates);
121
            $notAllowedDecorator->setLayout($layout);
122
123
            return $notAllowedDecorator;
124
        });
125
126
        $c[ExceptionDecorator::class] = $c->factory(function (Container $c) {
127
            $viewEngine = $c->get(PlatesEngine::class);
@@ 126-134 (lines=9) @@
123
            return $notAllowedDecorator;
124
        });
125
126
        $c[ExceptionDecorator::class] = $c->factory(function (Container $c) {
127
            $viewEngine = $c->get(PlatesEngine::class);
128
            $layout = $c->get('default_layout');
129
            $templates = $c->get('error_pages');
130
            $decorator = new ExceptionDecorator($viewEngine, $templates);
131
            $decorator->setLayout($layout);
132
133
            return $decorator;
134
        });
135
136
        $c[PlatesStrategy::class] = $c->factory(function (Container $c) {
137
            $viewEngine = $c->get(PlatesEngine::class);