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 — master ( 5e70bf...24950a )
by Sam
17:10
created

ModuleBootstrap   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 10 3
1
<?php
2
declare(strict_types=1);
3
namespace SamIT\Yii2\PhpFpm;
4
5
use yii\base\Application;
6
use yii\base\BootstrapInterface;
7
8
class ModuleBootstrap implements BootstrapInterface
9
{
10
    /**
11
     * Bootstrap method to be called during application bootstrap stage.
12
     * @param Application $app the application currently running
13
     */
14
    public function bootstrap($app): void
15
    {
16
        if ($app instanceof \yii\console\Application) {
17
            if (!$app->hasModule("phpFpm")) {
18
                $app->setModule("phpFpm", [
19
                    'class' => Module::class
20
                ]);
21
            }
22
        }
23
    }
24
}