Skip to content

PEAR.ControlStructures.MultiLineCondition.CloseBracketNewLine not detected if preceded by multiline function call #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nkovacs opened this issue Aug 30, 2016 · 1 comment

Comments

@nkovacs
Copy link
Contributor

nkovacs commented Aug 30, 2016

PEAR.ControlStructures.MultiLineCondition.CloseBracketNewLine is detected here:

<?php

if ($a
    && foo('a', 'b')) {
    echo 'bar';
}

but not here:

<?php

if ($a
    && foo(
        'a',
        'b'
    )) {
    echo 'bar';
}

PHP_CodeSniffer version 2.6.2

gsherwood added a commit that referenced this issue Sep 20, 2016
…ketNewLine not detected if preceded by multiline function call
@gsherwood
Copy link
Member

I've added a fix for this. Thanks for reporting the bug.

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

No branches or pull requests

2 participants