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

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