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
86 | ERROR | [x] Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 0
| | (PSR12.ControlStructures.ControlStructureSpacing.LineIndent)
88 | ERROR | [x] Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
| | (PSR12.ControlStructures.ControlStructureSpacing.LineIndent)
88 | ERROR | [x] The closing parenthesis of a multi-line control structure must be on the line after the last expression
| | (PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine)
but when running it
FAILED TO FIX
Using -vvv it seems that this is what it fixes it too, breaking other rules:
Not sure if this is related (if not, i can open up a new issue), but the following code gets completely broken in terms of layout:
Different issue.
gsherwood
changed the title
Bug in multi line fixing
PSR12.ControlStructures.ControlStructureSpacing not ignoring indentation inside multi-line string arguments
Oct 3, 2019
Thanks for the report. The sniff was not ignoring multi-line string arguments and so was complaining about indentation and conflicting with other rules.
reports
but when running it
Using -vvv it seems that this is what it fixes it too, breaking other rules:
The text was updated successfully, but these errors were encountered: