ErrorController::errorAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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
}