BASH   34

phpcs

Guest on 24th August 2022 12:48:53 PM

  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  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.  
  18. if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) {
  19.     include_once dirname(__FILE__).'/../CodeSniffer/CLI.php';
  20. } else {
  21.     include_once 'PHP/CodeSniffer/CLI.php';
  22. }
  23.  
  24. $cli = new PHP_CodeSniffer_CLI();
  25. $cli->runphpcs();

Raw Paste


Login or Register to edit or fork this paste. It's free.