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

src/Phase/TakeATicketBundle/Controller/AjaxController.php 2 locations

@@ 85-101 (lines=17) @@
82
        return $jsonResponse;
83
    }
84
85
    public function useTicketAction(Request $request)
86
    {
87
        //        $this->setJsonErrorHandler();
88
89
        $this->denyAccessUnlessGranted(self::MANAGER_REQUIRED_ROLE);
90
91
        $id = $request->get('ticketId');
92
        $res = $this->getDataStore()->markTicketUsedById($id);
93
        //FIXME fetch ticket with extra data
94
        if ($res) {
95
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
96
        } else {
97
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
98
        }
99
100
        return $jsonResponse;
101
    }
102
103
    public function remotesRedirectAction()
104
    {
@@ 241-256 (lines=16) @@
238
        return $jsonResponse;
239
    }
240
241
    public function deleteTicketAction(Request $request)
242
    {
243
        $this->denyAccessUnlessGranted(self::MANAGER_REQUIRED_ROLE);
244
245
        $id = $request->get('ticketId');
246
        $res = $this->getDataStore()->deleteTicketById($id);
247
        if ($res) {
248
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
249
        } else {
250
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
251
        }
252
253
        return $jsonResponse;
254
    }
255
256
    /**
257
     * Opaque hash that changes when new tickets are added (may cover further changes in future)
258
     *
259
     * @return JsonResponse