IndexController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 28
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Controller;
4
5
use Psr\Http\Message\ResponseInterface;
6
use Slim\Container;
7
use Slim\Http\Request;
8
use Slim\Http\Response;
9
10
/**
11
 * Class IndexController.
12
 */
13
class IndexController extends AppController
14
{
15
    /**
16
     * IndexController constructor.
17
     *
18
     * @param Container $container
19
     *
20
     * @throws \Interop\Container\Exception\ContainerException
21
     */
22 2
    public function __construct(Container $container)
23
    {
24 2
        parent::__construct($container);
25 2
    }
26
27
    /**
28
     * Index method.
29
     *
30
     * @param Request $request
31
     * @param Response $response
32
     *
33
     * @throws \Psr\Container\ContainerExceptionInterface
34
     * @throws \Psr\Container\NotFoundExceptionInterface
35
     *
36
     * @return ResponseInterface
37
     */
38 2
    public function indexAction(Request $request, Response $response): ResponseInterface
39
    {
40 2
        return $this->render($response, $request, 'Home/home.index.twig', []);
41
    }
42
}
43