Completed
Pull Request — develop (#100)
by Laurent
04:43 queued 03:17
created

DefaultController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Infrastructure\Controllers;
6
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
8
use Symfony\Component\HttpFoundation\Response;
9
use Symfony\Component\Routing\Annotation\Route;
10
11
class DefaultController extends AbstractController
12
{
13
    /**
14
     * @Route("/", name="home", methods={"GET"})
15
     */
16
    public function __invoke(): Response
17
    {
18
        return $this->render('default/index.html.twig', [
19
            'controller_name' => 'Controller',
20
        ]);
21
    }
22
}
23