Setup   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A doDeactivatePluginAction() 0 2 1
A doActivatePluginAction() 0 2 1
1
<?php
2
3
namespace Leonidas\Plugin\Module;
4
5
use Leonidas\Contracts\Extension\ModuleInterface;
6
use Leonidas\Framework\Module\Abstracts\PluginSetupModule;
7
8
final class Setup extends PluginSetupModule implements ModuleInterface
9
{
10
    protected function doActivatePluginAction(bool $networkWide): void
0 ignored issues
show
Unused Code introduced by
The parameter $networkWide is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    protected function doActivatePluginAction(/** @scrutinizer ignore-unused */ bool $networkWide): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
    {
12
        //
13
    }
14
15
    protected function doDeactivatePluginAction(bool $networkDeactivating): void
0 ignored issues
show
Unused Code introduced by
The parameter $networkDeactivating is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    protected function doDeactivatePluginAction(/** @scrutinizer ignore-unused */ bool $networkDeactivating): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        //
18
    }
19
}
20