Skip to content

PropertyLabelSpacing JS fixer issue when there is no space after colon  #466

@sertand

Description

@sertand

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' } );

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions