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
Large catch/elseif/else blocks are hard to read. Let's enforce a blank line above them.
if (blah) {
somecode();
} elseif (bleh) {
someothercode();
}
We would need to implement our own sniff for this.
It may possibly trigger warnings in other sniffs (Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose) if we do it. So we'll need to look at those as well.
It should be able to auto-correct using phpcbf
The text was updated successfully, but these errors were encountered:
Large catch/elseif/else blocks are hard to read. Let's enforce a blank line above them.
We would need to implement our own sniff for this.
It may possibly trigger warnings in other sniffs (
Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose
) if we do it. So we'll need to look at those as well.It should be able to auto-correct using phpcbf
The text was updated successfully, but these errors were encountered: