Error   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A notFound() 0 9 1
A notFoundView() 0 9 1
1
<?php
2
3
namespace Utils\Controller;
4
5
use Drone\Mvc\AbstractionController;
6
use Drone\Network\Http;
7
8
class Error extends AbstractionController
9
{
10
	public function notFound()
11
	{
12
		$this->setShowView(false);
13
		$this->setLayout('HTTP404');
14
15
        $http = new Http();
16
        $http->writeStatus($http::HTTP_NOT_FOUND);
17
18
		return [];
19
	}
20
21
	public function notFoundView()
22
	{
23
		$this->setLayout('blank');
24
		//$this->setTerminal(true);
25
26
        $http = new Http();
27
        $http->writeStatus($http::HTTP_NOT_FOUND);
28
29
		return [];
30
	}
31
}