Drupal investigation

phpcs 758B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * PHP_CodeSniffer tokenizes PHP code and detects violations of a
  5. * defined set of coding standards.
  6. *
  7. * PHP version 5
  8. *
  9. * @category PHP
  10. * @package PHP_CodeSniffer
  11. * @author Greg Sherwood <gsherwood@squiz.net>
  12. * @author Marc McIntyre <mmcintyre@squiz.net>
  13. * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
  14. * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
  15. * @link http://pear.php.net/package/PHP_CodeSniffer
  16. */
  17. if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) {
  18. include_once dirname(__FILE__).'/../CodeSniffer/CLI.php';
  19. } else {
  20. include_once 'PHP/CodeSniffer/CLI.php';
  21. }
  22. $cli = new PHP_CodeSniffer_CLI();
  23. $cli->runphpcs();