wol-soft/php-workflow

View on GitHub

Showing 116 of 116 total issues

Closing brace must be on a line by itself
Open

    public function __construct(private string $key, private ?string $type = null) {}

Opening brace should be on a new line
Open

    protected function wrapStepExecution(WorkflowStep $step, WorkflowState $workflowState): void {

Expected 1 newline at end of file; 0 found
Open

}
Severity: Minor
Found in src/ExecutableWorkflow.php by phpcodesniffer

Closing brace must be on a line by itself
Open

            case WorkflowState::STAGE_ON_ERROR: return 'On Error';

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

                ) as $dependencyAttribute

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                [

Expected 1 newline at end of file; 0 found
Open

}

Space before opening parenthesis of function call prohibited
Open

                        fn (string $warning): string =>

Closing brace must be on a line by itself
Open

            case WorkflowState::STAGE_PROCESS: return 'Process';

Space before opening parenthesis of function call prohibited
Open

                            fn (StepInfo $info): bool => !in_array(

Expected 1 newline at end of file; 0 found
Open

}

Space before opening parenthesis of function call prohibited
Open

                        fn (StepInfo $info): string => "<BR/><FONT POINT-SIZE=\"10\">{$info->getInfo()}</FONT>",

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

                    ReflectionAttribute::IS_INSTANCEOF,

Closing brace must be on a line by itself
Open

            case WorkflowState::STAGE_SUMMARY: return 'Summary';

Closing brace must be on a line by itself
Open

            case WorkflowState::STAGE_BEFORE: return 'Before';

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            sprintf(PHP_EOL . '        %s: %s', self::mapStage($stage), $warning),

Space before opening parenthesis of function call prohibited
Open

            $tip = fn () => $middleware(

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

                    StepDependencyInterface::class,

Closing brace must be on a line by itself
Open

            case WorkflowState::STAGE_PREPARE: return 'Prepare';

Closing brace must be on a line by itself
Open

            case WorkflowState::STAGE_VALIDATE: return 'Validate';
Severity
Category
Status
Source
Language