Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
:sparkles: New sniff: FunctionCallSignatureNoParams #972
Report on and remove whitespace between function call parenthesis when the function call has no parameters.
This sniff will result in contradictory messages when run with PHPCS, but that can't really be helped.
I've chosen to put this sniff in the
Includes an auto-fixer.
This auto-fixer has been tested to not conflict with the
N.B.: I've also opened upstream issue squizlabs/PHP_CodeSniffer#1512 about this, but there are two reasons to pull this PR anyway:
As it is currently unclear how, when and in which branch this will be fixed upstream, pulling this as an interim solution seems appropriate. Depending on if & when this will be addressed upstream and in which branch, this sniff may be removed at a later date or may need adjusting to not conflict with the updated version of the PEAR sniff.