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 = 28-28 lines in 2 locations

src/Phase/TakeATicket/Controller.php 1 location

@@ 280-307 (lines=28) @@
277
        return $response;
278
    }
279
280
    public function helpAction($section)
281
    {
282
        $this->assertRole(self::MANAGER_REQUIRED_ROLE);
283
284
        $rootDir = realpath(__DIR__.'/../../../');
285
        $map = [
286
            'readme' => $rootDir.'/README.md',
287
            'CONTRIBUTING' => $rootDir.'/docs/CONTRIBUTING.md',
288
            'TODO' => $rootDir.'/docs/TODO.md',
289
        ];
290
291
        if (!isset($map[$section])) {
292
            throw new NotFoundHttpException();
293
        }
294
295
        $markdown = file_get_contents($map[$section]);
296
297
        $markdown = preg_replace(
298
            '#\[docs/\w+.md\]\((./)?docs/(\w+).md\)#',
299
            '[docs/$2.md](/help/$2)',
300
            $markdown
301
        );
302
303
        return $this->app['twig']->render(
304
            'help.html.twig',
305
            ['helpText' => $markdown]
306
        );
307
    }
308
309
    public function announceAction($section)
310
    {

src/Phase/TakeATicketBundle/Controller/ManagementController.php 1 location

@@ 44-71 (lines=28) @@
41
    }
42
43
44
    public function helpAction($section = 'readme')
45
    {
46
        $this->denyAccessUnlessGranted('ROLE_ADMIN');
47
48
        $rootDir = realpath(__DIR__ . '/../../../../');
49
        $map = [
50
            'readme' => $rootDir . '/README.md',
51
            'CONTRIBUTING' => $rootDir . '/docs/CONTRIBUTING.md',
52
            'TODO' => $rootDir . '/docs/TODO.md',
53
        ];
54
55
        if (!isset($map[$section])) {
56
            throw new NotFoundHttpException();
57
        }
58
59
        $markdown = file_get_contents($map[$section]);
60
61
        $markdown = preg_replace(
62
            '#\[docs/\w+.md\]\((./)?docs/(\w+).md\)#',
63
            '[docs/$2.md](/help/$2)',
64
            $markdown
65
        );
66
67
        return $this->render(
68
            ':default:help.html.twig',
69
            ['helpText' => $markdown]
70
        );
71
    }
72
73
    public function settingsAction(Request $request)
74
    {