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

ErrorController::errorAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 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
}