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 = 15-17 lines in 4 locations

src/Phase/TakeATicket/Controller.php 2 locations

@@ 206-221 (lines=16) @@
203
        return $jsonResponse;
204
    }
205
206
    public function useTicketPostAction(Request $request)
207
    {
208
        $this->setJsonErrorHandler();
209
210
        $this->assertRole(self::MANAGER_REQUIRED_ROLE);
211
212
        $id = $request->get('ticketId');
213
        $res = $this->dataSource->markTicketUsedById($id);
214
        //FIXME fetch ticket with extra data
215
        if ($res) {
216
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
217
        } else {
218
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
219
        }
220
221
        return $jsonResponse;
222
    }
223
224
    public function deleteTicketPostAction(Request $request)
@@ 224-238 (lines=15) @@
221
        return $jsonResponse;
222
    }
223
224
    public function deleteTicketPostAction(Request $request)
225
    {
226
        $this->setJsonErrorHandler();
227
228
        $this->assertRole(self::MANAGER_REQUIRED_ROLE);
229
230
        $id = $request->get('ticketId');
231
        $res = $this->dataSource->deleteTicketById($id);
232
        if ($res) {
233
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
234
        } else {
235
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
236
        }
237
238
        return $jsonResponse;
239
    }
240
241
    public function songSearchApiAction(Request $request)

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

@@ 66-82 (lines=17) @@
63
        return $jsonResponse;
64
    }
65
66
    public function useTicketAction(Request $request)
67
    {
68
        //        $this->setJsonErrorHandler();
69
70
        $this->denyAccessUnlessGranted(self::MANAGER_REQUIRED_ROLE);
71
72
        $id = $request->get('ticketId');
73
        $res = $this->getDataStore()->markTicketUsedById($id);
74
        //FIXME fetch ticket with extra data
75
        if ($res) {
76
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
77
        } else {
78
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
79
        }
80
81
        return $jsonResponse;
82
    }
83
84
    public function remotesRedirectAction()
85
    {
@@ 155-170 (lines=16) @@
152
        return $jsonResponse;
153
    }
154
155
    public function deleteTicketAction(Request $request)
156
    {
157
        //        $this->setJsonErrorHandler();
158
159
        $this->denyAccessUnlessGranted(self::MANAGER_REQUIRED_ROLE);
160
161
        $id = $request->get('ticketId');
162
        $res = $this->getDataStore()->deleteTicketById($id);
163
        if ($res) {
164
            $jsonResponse = new JsonResponse(['ok' => 'ok']);
165
        } else {
166
            $jsonResponse = new JsonResponse(['ok' => 'fail'], 500);
167
        }
168
169
        return $jsonResponse;
170
    }
171
172
    public function newTicketOrderAction(Request $request)
173
    {