Application::run()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 7
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