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 ( fea5eb...c29f0e )
by Vermeulen
02:17
created

Config   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 39
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
A getConfig() 0 4 1
A init() 0 7 1
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
class Config extends AbstractSystem
6
{
7
    /**
8
     * @var \BFW\Config|null $config The config object for BFW framework
9
     */
10
    protected $config;
11
    
12
    /**
13
     * {@inheritdoc}
14
     * 
15
     * @return \BFW\Config|null
16
     */
17
    public function __invoke()
18
    {
19
        return $this->config;
20
    }
21
22
    /**
23
     * Getter accessor to the property config
24
     * 
25
     * @return \BFW\Config|null
26
     */
27
    public function getConfig()
28
    {
29
        return $this->config;
30
    }
31
    
32
    /**
33
     * {@inheritdoc}
34
     * Define config object and load all config file used by the framework
35
     */
36
    public function init()
37
    {
38
        $this->config = new \BFW\Config('bfw');
39
        $this->config->loadFiles();
40
        
41
        $this->initStatus = true;
42
    }
43
}
44