Chris@0: #!/usr/bin/env php Chris@0: Chris@0: * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) Chris@0: * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence Chris@0: * @link http://pear.php.net/package/PHP_CodeSniffer Chris@0: */ Chris@0: Chris@0: if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) { Chris@0: include_once dirname(__FILE__).'/../CodeSniffer/CLI.php'; Chris@0: } else { Chris@0: include_once 'PHP/CodeSniffer/CLI.php'; Chris@0: } Chris@0: Chris@0: $cli = new PHP_CodeSniffer_CLI(); Chris@0: $cli->runphpcbf();