Passed
Push — master ( a1fc90...f8dfb5 )
by Tarmo
09:37
created

IndexController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/Controller/IndexController.php
5
 *
6
 * @author TLe, Tarmo Leppänen <[email protected]>
7
 */
8
9
namespace App\Controller;
10
11
use Symfony\Component\HttpFoundation\Response;
12
use Symfony\Component\Routing\Annotation\Route;
13
use Throwable;
14
15
/**
16
 * Class IndexController
17
 *
18
 * @package App\Controller
19
 * @author TLe, Tarmo Leppänen <[email protected]>
20
 */
21
class IndexController
22
{
23
    /**
24
     * Default application response when requested root.
25
     *
26
     * @Route(
27
     *      path="/",
28
     *      methods={"GET"}
29
     *  )
30
     *
31
     * @throws Throwable
32
     */
33 1
    public function __invoke(): Response
34
    {
35 1
        return new Response('', Response::HTTP_OK);
36
    }
37
}
38