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 ( 95a6f3...22ad01 )
by Vermeulen
01:44
created

ReadDirLoadModule   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A itemAction() 0 18 3
1
<?php
2
3
namespace BFW\Install;
4
5
/**
6
 * Class use to detect modules in a directory and sub-directories
7
 */
8
class ReadDirLoadModule extends \BFW\Helpers\ReadDirectory
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected function itemAction($fileName, $pathToFile)
14
    {
15
        //Call parent method to check ignored files
16
        $parentAction = parent::itemAction($fileName, $pathToFile);
17
18
        if (!empty($parentAction)) {
19
            return $parentAction;
20
        }
21
22
        //Detect the file containing module infos
23
        if ($fileName === 'bfwModulesInfos.json') {
24
            $this->list[] = $pathToFile;
25
26
            return 'break';
27
        }
28
29
        return '';
30
    }
31
}
32