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

Options::getOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
class Options extends AbstractSystem
6
{
7
    /**
8
     * @var \BFW\Core\Options|null $options
9
     */
10
    protected $options;
11
    
12
    /**
13
     * {@inheritdoc}
14
     * 
15
     * @return \BFW\Core\Options|null
16
     */
17
    public function __invoke()
18
    {
19
        return $this->options;
20
    }
21
    
22
    /**
23
     * Getter accessor to property options
24
     * 
25
     * @return \BFW\Core\Options|null
26
     */
27
    public function getOptions()
28
    {
29
        return $this->options;
30
    }
31
    
32
    /**
33
     * {@inheritdoc}
34
     * Initialize option system with parameter passed to Application
35
     */
36
    public function init()
37
    {
38
        $this->options = new \BFW\Core\Options(
39
            $this->obtainDefaultOptions(),
40
            \BFW\Application::getInstance()->getDeclaredOptions()
41
        );
42
        
43
        $this->options
44
            ->searchPaths()
45
            ->checkPaths()
46
        ;
47
        
48
        $this->initStatus = true;
49
    }
50
    
51
    /**
52
     * Define default option values
53
     * 
54
     * @return array
55
     */
56
    protected function obtainDefaultOptions()
57
    {
58
        return [
59
            'rootDir'    => null,
60
            'vendorDir'  => null,
61
            'runSession' => true
62
        ];
63
    }
64
}
65