ErrorController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 2
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A errorAction() 0 7 1
1
<?php
2
3
namespace SkautisBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
7
/**
8
 * Skautis error controller
9
 * Zobrazeni informace pri neosetrene vyjimce \Skautis\Exception
10
 */
11
class ErrorController extends Controller
12
{
13
    /**
14
     * Zobrazi error
15
     */
16
    public function errorAction()
17
    {
18
        $response = $this->render("SkautisBundle:Controller/Error:index.html.twig");
19
        $response->setStatusCode(500);
20
21
        return $response;
22
    }
23
}