This has been quite messy. See the comments in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/939385
Basically, stuff like:
$a = ['a','b']; $a = ['a', 'b'];
Should fail the phpcs.
I found https://github.com/squizlabs/PHP_CodeSniffer/issues/582 and https://github.com/squizlabs/PHP_CodeSniffer/issues/2687
This would be extremely useful when I'm mass switching calls to deprecated Database methods to QueryBuilders as the php parser strips all spaces