Completed
Push — master ( d79ecd...9b33ca )
by Davide
12:48
created

WebsiteController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A calculate() 0 4 1
A documentazione() 0 4 1
A prova() 0 4 1
1
<?php
2
3
namespace DavidePastore\CodiceFiscaleRest\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
6
use Symfony\Component\HttpFoundation\Response;
7
use Symfony\Component\Routing\Annotation\Route;
8
9
/**
10
 * Class WebsiteController
11
 */
12
class WebsiteController extends AbstractController
13
{
14
15
    /**
16
     * Home page
17
     * @Route("/", name="homepage")
18
     */
19
    public function calculate(): Response
20
    {
21
        return $this->render('index.twig');
22
    }
23
24
    /**
25
     * Documentazione
26
     * @Route("/documentazione", name="documentazione")
27
     */
28
    public function documentazione(): Response
29
    {
30
        return $this->render('documentazione.twig');
31
    }
32
33
    /**
34
     * Prova
35
     * @Route("/prova", name="prova")
36
     */
37
    public function prova(): Response
38
    {
39
        return $this->render('prova.twig');
40
    }
41
}
42