Core   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 77.78%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 7
cts 9
cp 0.7778
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 17 2
1
<?php
2
3
namespace BrainExe\Core;
4
5
use BrainExe\Core\DependencyInjection\Rebuild;
6
use Symfony\Component\DependencyInjection\Container;
7
8
/**
9
 * @api
10
 */
11
class Core
12
{
13
14
    /**
15
     * @return Container
16
     */
17 1
    public function boot() : Container
18
    {
19 1
        $fileName = ROOT . 'cache/dic.php';
20
        /** @var Container $dic */
21 1
        if (!is_file($fileName)) {
22
            $rebuild = new Rebuild();
23
            $rebuild->buildContainer();
24
        }
25
26 1
        include_once $fileName;
27
28 1
        $dic = new \DumpedContainer();
29
30 1
        $dic->get('monolog.ErrorHandler');
31
32 1
        return $dic;
33
    }
34
}
35