Code Duplication    Length = 8-8 lines in 2 locations

src/RSlim.php 2 locations

@@ 179-186 (lines=8) @@
176
            };
177
        };
178
        if ($this->config['bypass_error_handlers'] === true) {
179
            $this->container['errorHandler'] = function($container) {
180
                return function($request, $response, $exception) use ($container) {
181
                    $response->getBody()->rewind();
182
                    return $response->withStatus(500)
183
                        ->withHeader('Content-Type', 'text/html')
184
                        ->write($exception->getMessage());
185
                };
186
            };
187
            $this->container['phpErrorHandler'] = function($container) {
188
                return function($request, $response, $error) use ($container) {
189
                    $response->getBody()->rewind();
@@ 187-194 (lines=8) @@
184
                        ->write($exception->getMessage());
185
                };
186
            };
187
            $this->container['phpErrorHandler'] = function($container) {
188
                return function($request, $response, $error) use ($container) {
189
                    $response->getBody()->rewind();
190
                    return $response->withStatus(500)
191
                        ->withHeader('Content-Type', 'text/html')
192
                        ->write($error->getMessage());
193
                };
194
            };
195
        }
196
        $this->app->run();
197
    }