phpcs 559 B

12345678910111213141516171819
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * PHP_CodeSniffer detects violations of a defined coding standard.
  5. *
  6. * @author Greg Sherwood <gsherwood@squiz.net>
  7. * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
  8. * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
  9. */
  10. if (is_file(__DIR__.'/../autoload.php') === true) {
  11. include_once __DIR__.'/../autoload.php';
  12. } else {
  13. include_once 'PHP/CodeSniffer/autoload.php';
  14. }
  15. $runner = new PHP_CodeSniffer\Runner();
  16. $exitCode = $runner->runPHPCS();
  17. exit($exitCode);