Replaced phpcs --version by PHP_CodeSniffer::VERSION in version check to improve Composer compatibility.