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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 30
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStatusAction() 0 4 1
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
}