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 fixing the following code PHPCS adds extra spaces between the string and the closing brace. Fixer works fine when there is a single space after phpcs:
// Original code:fn.phpcs({phpcs:'rocks my world'});// After running fixer:fn.phpcs({phpcs:'rocks my world'});
The text was updated successfully, but these errors were encountered:
Looks to be latest PHPCS with Squiz standard running over JS.
The fixable error is There must be a single space after the colon in a property/label declaration but the fix is incorrect when there are no spaces after the colon.
gsherwood
changed the title
PHPCS Fixer issue when there is no space after colon
PropertyLabelSpacing JS fixer issue when there is no space after colon
Feb 2, 2015
When fixing the following code PHPCS adds extra spaces between the string and the closing brace. Fixer works fine when there is a single space after phpcs:
The text was updated successfully, but these errors were encountered: