FixPSR2::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
eloc 5
c 3
b 1
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 1
1
<?php
2
class FixPSR2 extends RunCommandLineMethodOnModule
3
{
4
    public function __construct($rootDirForModule = '')
5
    {
6
        parent::__construct($rootDirForModule);
7
        $this->commands = [
0 ignored issues
show
Documentation Bug introduced by
It seems like array('cp ' . Director::...fix > errorsToFix.txt') of type array<integer,string> is incompatible with the declared type string of property $commands.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
8
            'cp '.Director::baseFolder(). '/modulechecks/ecs.yml ./',
9
            'composer require --dev symplify/easy-coding-standard',
10
            'vendor/bin/ecs check app/src --fix > errorsToFix.txt',
11
        ];
12
    }
13
}
14