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
    {
@@ 236-251 (lines=16) @@
233
        return $jsonResponse;
234
    }
235
236
    public function deleteTicketAction(Request $request)
237
    {
238
        $this->denyAccessUnlessGranted(self::MANAGER_REQUIRED_ROLE);
239
240
        $id = $request->get('ticketId');
241
        $res = $this->getDataStore()->deleteTicketById($id);
242
        if ($res) {
243
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
244
        } else {
245
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
246
        }
247
248
        return $jsonResponse;
249
    }
250
251
    /**
252
     * Opaque hash that changes when new tickets are added (may cover further changes in future)
253
     *
254
     * @return JsonResponse