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
This adds functions and closures to the control structure spacing
sniff. The sniff checks for proper spacing on each side of each of the
parentheses. It also checks that the opening brace is on the same line.
I’ve actually improved the sniff while I was at it, to check for excess
space in addition to insufficient space.
Because of these improvements, and due to the non-configurability of
the upstream version of this sniff, this sniff is really not a
duplicate, and so #385 can be closed.
Fixes#412, #385
WPCS currently seems to have spacing in control structure implemented as forked
WordPress.WhiteSpace.ControlStructureSpacing
sniff.PHP CS now got
Squiz.ControlStructures
sniffs which can do this.I think it would make sense to look into getting rid of the forked sniff (whose maintenance is on us) in favor of upstream implementation?
The text was updated successfully, but these errors were encountered: