Passed
Push — master ( 0ac9a3...3f373d )
by Yohann
02:09
created

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
namespace mvc\core;
4
5
use mvc\core\http\Response;
6
7
class Application
8
{
9
    public static function run()
10
    {
11
        $router = new Router();
12
        $response_content = $router->resolve();
13
14
        if ($response_content) {
15
            echo $response_content;
16
        }
17
    }
18
}
19