Skip to content

IF sniff false-positive inside a "switch" #107

@aik099

Description

@aik099

When "IF" statement is inside a switch then it reports:

No blank line found after "if" control structure

for this code:

switch ( $var ) {
    case 5:
        $a = 3;
        
        if ( $var == 3 ) {
            $b = 4;
        }
        break;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions