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.
Passed
Branch 3.0 (cbdaa6)
by Vermeulen
04:11
created

ModuleManager::toRun()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BFW\Install\Core\AppSystems;
4
5
use \BFW\Core\AppSystems\AbstractSystem;
6
use BFW\Install\ModuleManager as Manager;
7
8
class ModuleManager extends AbstractSystem
9
{
10
    /**
11
     * @var \BFW\Install\ModuleManager
12
     */
13
    protected $manager;
14
15
    /**
16
     * Initialize the ModuleManager system
17
     */
18
    public function __construct()
19
    {
20
        $this->manager = new Manager;
21
    }
22
    
23
    /**
24
     * {@inheritdoc}
25
     * 
26
     * @return $this
27
     */
28
    public function __invoke()
29
    {
30
        return $this->manager;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->manager returns the type BFW\Install\ModuleManager which is incompatible with the documented return type BFW\Install\Core\AppSystems\ModuleManager.
Loading history...
31
    }
32
    
33
    /**
34
     * Getter accessor to property manager
35
     * 
36
     * @return \BFW\Install\ModuleManager
37
     */
38
    public function getManager(): Manager
39
    {
40
        return $this->manager;
41
    }
42
    
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function toRun(): bool
47
    {
48
        return true;
49
    }
50
    
51
    /**
52
     * {@inheritdoc}
53
     * Run install of all modules
54
     */
55
    public function run()
56
    {
57
        $this->manager->doAction();
58
        $this->runStatus = true;
59
    }
60
}
61