Passed
Pull Request — master (#42)
by Arman
03:27
created

App   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A start() 0 9 1
A loadCoreFuncations() 0 4 2
1
<?php
2
3
4
namespace Quantum;
5
6
use Quantum\Di\Di;
7
use Quantum\Tracer\ErrorHandler;
8
use Quantum\Bootstrap;
9
10
class App
11
{
12
13
    public static function start()
14
    {
15
        self::loadCoreFuncations();
16
17
        Di::loadDefinitions();
18
19
        ErrorHandler::setup();
20
21
        Bootstrap::run();
22
    }
23
24
    public static function loadCoreFuncations()
25
    {
26
        foreach (glob(HELPERS_DIR . DS . 'functions' . DS . '*.php') as $filename) {
27
            require_once $filename;
28
        }
29
    }
30
31
}