You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
578 B
19 lines
578 B
#!/usr/bin/env php |
|
<?php |
|
/** |
|
* PHP_CodeSniffer detects violations of a defined coding standard. |
|
* |
|
* @author Greg Sherwood <gsherwood@squiz.net> |
|
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) |
|
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence |
|
*/ |
|
|
|
if (is_file(__DIR__.'/../autoload.php') === true) { |
|
include_once __DIR__.'/../autoload.php'; |
|
} else { |
|
include_once 'PHP/CodeSniffer/autoload.php'; |
|
} |
|
|
|
$runner = new PHP_CodeSniffer\Runner(); |
|
$exitCode = $runner->runPHPCS(); |
|
exit($exitCode);
|
|
|