GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 3.0 ( 5276e1...94e02b )
by Vermeulen
01:25
created

Constants::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 15
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
class Constants extends AbstractSystem
6
{
7
    /**
8
     * Define all constants
9
     */
10
    public function __construct()
11
    {
12
        \BFW\Helpers\Constants::create('ROOT_DIR', $this->obtainRootDir());
13
14
        \BFW\Helpers\Constants::create('APP_DIR', ROOT_DIR.'app/');
15
        \BFW\Helpers\Constants::create('SRC_DIR', ROOT_DIR.'src/');
16
        \BFW\Helpers\Constants::create('WEB_DIR', ROOT_DIR.'web/');
17
18
        \BFW\Helpers\Constants::create('CONFIG_DIR', APP_DIR.'config/');
19
        \BFW\Helpers\Constants::create('MODULES_DIR', APP_DIR.'modules/');
20
21
        \BFW\Helpers\Constants::create('CLI_DIR', SRC_DIR.'cli/');
22
        \BFW\Helpers\Constants::create('CTRL_DIR', SRC_DIR.'controllers/');
23
        \BFW\Helpers\Constants::create('MODELES_DIR', SRC_DIR.'modeles/');
24
        \BFW\Helpers\Constants::create('VIEW_DIR', SRC_DIR.'view/');
25
    }
26
    
27
    /**
28
     * {@inheritdoc}
29
     * @return null
30
     */
31
    public function __invoke()
32
    {
33
        return null;
34
    }
35
    
36
    /**
37
     * Obtain the path of the application root directory
38
     * 
39
     * @return string
40
     */
41
    protected function obtainRootDir(): string
42
    {
43
        return \BFW\Application::getInstance()
44
            ->getOptions()
45
            ->getValue('rootDir')
46
        ;
47
    }
48
}
49