ErrorController   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 15
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A errorAction() 0 8 1
A notFoundAction() 0 1 1
A notAuthorisedAction() 0 1 1
1
<?php
2
3
namespace App\Controller;
4
use Bone\Mvc\Controller;
5
use Bone\Mvc\Exception;
6
7
class ErrorController extends Controller
8
{
9
    public function errorAction()
10
    {
11
        /** @var Exception $e  */
12
        $e = $this->getParam('error');
13
        $this->view->message = $e->getMessage();
14
        $this->view->code = $e->getCode();
15
        $this->view->trace = $e->getTrace();
16
    }
17
18
    public function notFoundAction(){}
19
20
    public function notAuthorisedAction(){}
21
}