Completed
Branch dev-master (d2707d)
by Derek Stephen
01:43
created

ErrorController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

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