wol-soft/php-workflow

View on GitHub
src/Middleware/WorkflowStepDependencyCheck.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid unused parameters such as '$control'.
Open

        WorkflowControl $control,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

syntax error, unexpected ')', expecting variable (T_VARIABLE)
Open

    ) {

Space found before closing bracket of FOREACH loop
Open

            foreach ($containerParameter->getAttributes(

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                ) as $dependencyAttribute

Multi-line function call not indented correctly; expected 16 spaces but found 20
Open

                    ReflectionAttribute::IS_INSTANCEOF,

Multi-line function call not indented correctly; expected 16 spaces but found 20
Open

                    StepDependencyInterface::class,

There are no issues that match your filters.

Category
Status