* Fix PHP_CodeSniffer errors
Error message:
Header blocks must be separated by a single blank line (PSR12.Files.FileHeader.SpacingAfterTagBlock)
* Fix PHP_CodeSniffer errors
Error message:
Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
* Fix PHP_CodeSniffer warnings
Error message:
A file should declare new symbols (classes, functions, constants, etc.)
and cause no other side effects, or it should execute logic with side
effects, but should not do both. The first symbol is defined on line 6
and the first side effect is on line 14.
(PSR1.Files.SideEffects.FoundWithSymbols)
Fixes error:
$ ./tests/check_coding_standards.sh
PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net)
ERROR: Referenced sniff "PHPCS23Utils" does not exist
Run "phpcs --help" for usage information
Error: found standard violation(s)
Comment out installed_paths config to fix error:
$ ./tests/check_coding_standards.sh
PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net)
ERROR: Referenced sniff "PHPCS23Utils" does not exist
Run "phpcs --help" for usage information
Error: found standard violation(s)