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
A comment between the body and condition in do while loops, as illustrated below, breaks the Generic.InlineControlStructureSniff by producing the following error:
Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
A comment between the body and condition in do while loops, as illustrated below, breaks the Generic.InlineControlStructureSniff by producing the following error:
Is this intended behavior? If not, a fix would be to replace the search for anything but a
T_WHITESPACE
token, with a search for anything butTokens::$emptyTokens
in line 86:https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php#L86
The text was updated successfully, but these errors were encountered: