IndexController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 20
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 3 1
A getIndexBreadcrumbs() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the thealternativezurich/feedback project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Controller;
13
14
use App\Controller\Base\BaseDoctrineController;
15
use Symfony\Component\Routing\Annotation\Route;
16
17
/**
18
 * @Route("/")
19
 */
20
class IndexController extends BaseDoctrineController
21
{
22
    /**
23
     * @Route("", name="index")
24
     *
25
     * @return \Symfony\Component\HttpFoundation\Response
26
     */
27
    public function indexAction()
28
    {
29
        return $this->render('index/index.html.twig');
30
    }
31
32
    /**
33
     * no breadcrumbs on the index.
34
     *
35
     * @return \App\Model\Breadcrumb[]|array
36
     */
37
    protected function getIndexBreadcrumbs()
38
    {
39
        return [];
40
    }
41
}
42