1234567891011121314151617181920212223242526 |
- #!/usr/bin/env php
- <?php
- /**
- * PHP_CodeSniffer tokenizes PHP code and detects violations of a
- * defined set of coding standards.
- *
- * PHP version 5
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Marc McIntyre <mmcintyre@squiz.net>
- * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
- if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) {
- include_once dirname(__FILE__).'/../CodeSniffer/CLI.php';
- } else {
- include_once 'PHP/CodeSniffer/CLI.php';
- }
- $cli = new PHP_CodeSniffer_CLI();
- $cli->runphpcs();
|