PHP files can be validated using PEAR PHP_CodeSniffer as follows phpcs --standard=Kohana [filename.php]