-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PHP open/close tags on new lines should not apply for PHP inside HTML #423
Labels
Comments
gsherwood
added a commit
that referenced
this issue
Jan 6, 2015
…e tags on the same line (request #423)
Both those sniffs were written to disallow the sample code you've provided, but I agree that they work better when they allow that code instead. I've made 2 commits to let this sample code pass. |
Great. Thanks. |
jrfnl
added a commit
to jrfnl/PHP_CodeSniffer
that referenced
this issue
Jul 29, 2024
…peclosingbrace-fix-fixer-conflict PEAR/ScopeClosingBrace: prevent fixer conflict with itself
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code:
For code above I'm getting following errors:
I'm not 100% sure, but for cases, when
<?php
and?>
are located on same line at least 1st error (Generic.PHP.CharacterBeforePHPOpeningTag.Found
) should not be reported/fixed.The text was updated successfully, but these errors were encountered: