Code Duplication    Length = 9-9 lines in 3 locations

src/Mvc/ApplicationPackage.php 3 locations

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