DefaultController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
eloc 2
c 4
b 1
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

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