-
-
Notifications
You must be signed in to change notification settings - Fork 523
Closed
Description
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 - TabFixed as:
wp_die( $api ); // Tab - Tab - Tab - SpaceExpected fix:
wp_die( $api ); // Tab - Tab - Tab