GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 7-7 lines in 3 locations

src/Controller/Route.php 1 location

@@ 53-59 (lines=7) @@
50
                    $res = call_user_func_array($function, $params);
51
                    return $this->responseHandler->handle($app, $res, $reference);
52
                };
53
                foreach (array_reverse($this->hooks) as $hookName){
54
                    $next = function($request)use($app, $hookName, $next){
55
                        $hook = $app->get($hookName);
56
                        /**@var $hook HookInterface*/
57
                        return $hook->handle($request, $next);
58
                    };
59
                }
60
                return $next($request);
61
            });
62
        return $res;

src/Application.php 2 locations

@@ 275-281 (lines=7) @@
272
                    $next = function (Request $request)use($handler){
273
                        return $handler($this, $request);
274
                    };
275
                    foreach (array_reverse($hooks) as $hookName){
276
                        $next = function($request)use($hookName, $next){
277
                            $hook = $this->get($hookName);
278
                            /**@var $hook HookInterface*/
279
                            return $hook->handle($request, $next);
280
                        };
281
                    }
282
                    return $next($request);
283
284
                }elseif ($res[0] == Dispatcher::NOT_FOUND) {
@@ 293-299 (lines=7) @@
290
                }
291
            };
292
293
            foreach (array_reverse($this->getGlobalHooks()) as $hookName){
294
                $next = function($request)use($hookName, $next){
295
                    $hook = $this->get($hookName);
296
                    /**@var $hook HookInterface*/
297
                    return $hook->handle($request, $next);
298
                };
299
            }
300
            $response = $next($request);
301
302
            /** @var Response $response */