You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launching code sniffer with PSR-2 standard it gives one error:
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
7 | ERROR | [x] Closing brace must be on a line by itself
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Using alternative syntax is a quite common in view files and IMHO Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff should interpret indented "" as correct if it is aligned with opening IF statement.
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff marking indented <?php endif; ?>
Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff marking indented endif in mixed inline HTML blocks
Sep 20, 2015
Sample file:
When launching code sniffer with PSR-2 standard it gives one error:
Using alternative syntax is a quite common in view files and IMHO Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff should interpret indented "" as correct if it is aligned with opening IF statement.
The text was updated successfully, but these errors were encountered: