DemoController   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 34
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 4 1
A leftSidebarAction() 0 4 1
A rightSidebarAction() 0 4 1
A noSidebarAction() 0 4 1
1
<?php
2
3
namespace Evheniy\HTML5VertiTemplateBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Symfony\Component\HttpFoundation\Response;
7
8
/**
9
 * Class DemoController
10
 *
11
 * @package Evheniy\HTML5VertiTemplateBundle\Controller
12
 */
13
class DemoController extends Controller
14
{
15
    /**
16
     * @return Response
17
     */
18
    public function indexAction()
19
    {
20
        return $this->render('HTML5VertiTemplateBundle:Demo:index.html.twig');
21
    }
22
23
    /**
24
     * @return Response
25
     */
26
    public function leftSidebarAction()
27
    {
28
        return $this->render('HTML5VertiTemplateBundle:Demo:left_sidebar.html.twig');
29
    }
30
31
    /**
32
     * @return Response
33
     */
34
    public function rightSidebarAction()
35
    {
36
        return $this->render('HTML5VertiTemplateBundle:Demo:right_sidebar.html.twig');
37
    }
38
39
    /**
40
     * @return Response
41
     */
42
    public function noSidebarAction()
43
    {
44
        return $this->render('HTML5VertiTemplateBundle:Demo:no_sidebar.html.twig');
45
    }
46
}