Passed
Push — develop ( 08460c...bdd28d )
by Jens
03:23
created

NotFoundComponent::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 3
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 5
rs 9.4285
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
}