Code Duplication    Length = 9-9 lines in 3 locations

src/Mvc/ApplicationPackage.php 3 locations

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