Mercurial > hg > isophonics-drupal-site
annotate vendor/squizlabs/php_codesniffer/scripts/phpcs @ 2:92f882872392
Trusted hosts, + remove migration modules
author | Chris Cannam |
---|---|
date | Tue, 05 Dec 2017 09:26:43 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 #!/usr/bin/env php |
Chris@0 | 2 <?php |
Chris@0 | 3 /** |
Chris@0 | 4 * PHP_CodeSniffer tokenizes PHP code and detects violations of a |
Chris@0 | 5 * defined set of coding standards. |
Chris@0 | 6 * |
Chris@0 | 7 * PHP version 5 |
Chris@0 | 8 * |
Chris@0 | 9 * @category PHP |
Chris@0 | 10 * @package PHP_CodeSniffer |
Chris@0 | 11 * @author Greg Sherwood <gsherwood@squiz.net> |
Chris@0 | 12 * @author Marc McIntyre <mmcintyre@squiz.net> |
Chris@0 | 13 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) |
Chris@0 | 14 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence |
Chris@0 | 15 * @link http://pear.php.net/package/PHP_CodeSniffer |
Chris@0 | 16 */ |
Chris@0 | 17 |
Chris@0 | 18 if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) { |
Chris@0 | 19 include_once dirname(__FILE__).'/../CodeSniffer/CLI.php'; |
Chris@0 | 20 } else { |
Chris@0 | 21 include_once 'PHP/CodeSniffer/CLI.php'; |
Chris@0 | 22 } |
Chris@0 | 23 |
Chris@0 | 24 $cli = new PHP_CodeSniffer_CLI(); |
Chris@0 | 25 $cli->runphpcs(); |