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.

DefaultController::getStatusAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Awin\ReportTask\Bundle\ReportBundle\Controller\v1;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Symfony\Component\HttpFoundation\JsonResponse;
7
8
/**
9
 * Description of DefaultController
10
 */
11
class DefaultController extends Controller
12
{
13
    /**
14
     * This is the documentation description of your method, it will appear
15
     * on a specific pane. It will read all the text until the first
16
     * annotation.
17
     *
18
     * @Nelmio\ApiDocBundle\Annotation\ApiDoc(
19
     *  resource=false,
20
     *  description="This is a description of your API method",
21
     *  headers={
22
     *         {
23
     *             "name"="Access-Token",
24
     *             "description"="Domain ID or token"
25
     *         }
26
     *     },
27
     *     statusCodes={
28
     *         200="Returned when successful",
29
     *         403="Returned when the user is not authorized to say hello",
30
     *         404={
31
     *           "Returned when the user is not found",
32
     *           "Returned when something else is not found"
33
     *         }
34
     *     }
35
     * )
36
     */
37
    public function getStatusAction()
38
    {
39
        return new JsonResponse(
40
            ['status' => 'OK']
41
        );
42
    }
43
}