Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Sep 3, 2022

The following code should be skipped as else as ternary multiline already open and closed with parentheses.

function SkipNestedTernaryParenthesizedMultiline()
{
    is_dir('app')
        ? 'app'
        : (is_dir('vendor/app')
            ? 'vendor/app'
            : 'vendor/alternative');
}

@samsonasik
Copy link
Member Author

Fixed 🎉

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit d3cab63 into main Sep 3, 2022
@TomasVotruba
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants