Code Duplication    Length = 3-3 lines in 2 locations

lib/custom/src/Slim/Router.php 2 locations

@@ 105-107 (lines=3) @@
102
    protected function processInvalidMethod(ServerRequestInterface $request, ResponseInterface $response)
103
    {
104
        $router = $this->container->get('router');
105
        if (is_callable([$request->getUri(), 'getBaseUrl']) && is_callable([$router, 'getBaseUrl'])) {
106
            $router->setBasePath($request->getUri()->getBaseUrl());
107
        }
108
109
        $request = $this->dispatchRouterAndPrepareRoute($request, $router);
110
        $routeInfo = $request->getAttribute('routeInfo', [RouterInterface::DISPATCH_STATUS => Dispatcher::NOT_FOUND]);
@@ 141-143 (lines=3) @@
138
    {
139
        // Ensure basePath is set
140
        $router = $this->container->get('router');
141
        if (is_callable([$request->getUri(), 'getBaseUrl']) && is_callable([$router, 'getBaseUrl'])) {
142
            $router->setBasePath($request->getUri()->getBaseUrl());
143
        }
144
145
        // Dispatch the Router first if the setting for this is on
146
        if ($this->container->get('settings')['determineRouteBeforeAppMiddleware'] === true) {