This is a short proof-of-concept for a possible bug in CodeSniffer.
Run:
composer installcomposer phpcs
test.php contains the source code that will be modified by CodeSniffer, test.php.original is an unmodified copy of
test.php and test.php.output contains my local output.