Skip to content

Faulty core fixes: the case of the moving space #977

@jrfnl

Description

@jrfnl

Summary:

While squizlabs/PHP_CodeSniffer#1404 definitely is a huge improvement in the spaces -> tabs fixing, I'm still seeing an issue with this sniff when there is a combination of tabs and spaces for indentation and the spaces are not there for alignment.

Most likely cause: Generic.WhiteSpace.DisallowSpaceIndent

Example:

File: ./src/wp-admin/update.php line 127 (and in lots of other places too)

Source:

	 		wp_die( $api ); // Tab - Space - Tab - Tab

Fixed as:

			 wp_die( $api ); // Tab - Tab - Tab - Space

Expected fix:

			wp_die( $api ); // Tab - Tab - Tab

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions