php-fig-rectified/psr2r-sniffer

whitespace issues

dereuromark opened this issue · 1 comments

The following passes but should not:

AppPath::get( 'View/Cell' );
//expected
AppPath::get('View/Cell');
$folderContent = ( new Folder( $folder ) )->read( Folder::SORT_NAME, true );
//expected
$folderContent = (new Folder($folder))->read(Folder::SORT_NAME, true);

<rule ref="PSR2.Methods.FunctionCallSignature"/> is broken for tab and unfortunately cannot be used.

Bug is visible in https://github.com/php-fig-rectified/psr2r-sniffer/runs/4141026695?check_suite_focus=true as well as the changes applied by fixer in https://github.com/php-fig-rectified/psr2r-sniffer/compare/show-bug

.../devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/ControlStructures/SwitchDeclarationSniff.php  5      0
.../data/www/git/psr2r-sniffer/PSR2R/Sniffs/ControlStructures/ConditionalExpressionOrderSniff.php  FAILED TO FIX
.../work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/ControlStructures/UnneededElseSniff.php  FAILED TO FIX
...rk/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/Commenting/DocBlockVarWithoutNameSniff.php  FAILED TO FIX
.../data/www/git/psr2r-sniffer/PSR2R/Sniffs/Commenting/FullyQualifiedClassNameInDocBlockSniff.php  FAILED TO FIX
/var/work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/Commenting/DocBlockParamSniff.php       FAILED TO FIX
...work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/WhiteSpace/UnaryOperatorSpacingSniff.php  FAILED TO FIX
/var/work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/Namespaces/UnusedUseStatementSniff.php  FAILED TO FIX
/var/work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/Classes/ClassCreateInstanceSniff.php    7      0
/var/work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/PHP/ListCommaSniff.php                  FAILED TO FIX
/var/work/devilbox/data/www/git/psr2r-sniffer/PSR2R/Sniffs/PHP/SingleQuoteSniff.php                4      0

The changes are breaking indentation completely.