Passed
Push — master ( 3f6c85...9c6499 )
by Jens
02:40
created

NotFoundComponent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 9
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
1
<?php
2
/**
3
 * User: Jens
4
 * Date: 15-6-2017
5
 * Time: 15:06
6
 */
7
8
namespace library\components;
9
10
11
use library\storage\Storage;
12
13
class NotFoundComponent extends BaseComponent
14
{
15
    public function run(Storage $storage)
16
    {
17
        parent::run($storage);
18
        header("HTTP/1.0 404 Not Found");
19
    }
20
21
}