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   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fileAction() 0 16 3
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