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::itemAction()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 9.6666
c 0
b 0
f 0
cc 3
nc 3
nop 2
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