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 ( ba3e89...5b4d5c )
by Vermeulen
02:58
created

ReadDirLoadModule::fileAction()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 3
eloc 8
c 1
b 1
f 0
nc 3
nop 2
dl 0
loc 16
rs 9.4285
1
<?php
2
3
namespace BFW\Install;
4
5
class ReadDirLoadModule extends ReadDirectory
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    protected function fileAction($fileName, $pathToFile)
11
    {
12
        $parentAction = parent::fileAction($fileName, $pathToFile);
13
14
        if ($parentAction !== null) {
15
            return $parentAction;
16
        }
17
18
        if ($fileName === 'bfwModulesInfos.json') {
19
            $this->list[] = $pathToFile;
20
21
            return 'break';
22
        }
23
24
        return '';
25
    }
26
}
27