Mercurial > hg > isophonics-drupal-site
annotate vendor/squizlabs/php_codesniffer/scripts/phpcbf @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 #!/usr/bin/env php |
Chris@0 | 2 <?php |
Chris@0 | 3 /** |
Chris@0 | 4 * PHP Code Beautifier and Fixer |
Chris@0 | 5 * |
Chris@0 | 6 * PHP version 5 |
Chris@0 | 7 * |
Chris@0 | 8 * @category PHP |
Chris@0 | 9 * @package PHP_CodeSniffer |
Chris@0 | 10 * @author Greg Sherwood <gsherwood@squiz.net> |
Chris@0 | 11 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) |
Chris@0 | 12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence |
Chris@0 | 13 * @link http://pear.php.net/package/PHP_CodeSniffer |
Chris@0 | 14 */ |
Chris@0 | 15 |
Chris@0 | 16 if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) { |
Chris@0 | 17 include_once dirname(__FILE__).'/../CodeSniffer/CLI.php'; |
Chris@0 | 18 } else { |
Chris@0 | 19 include_once 'PHP/CodeSniffer/CLI.php'; |
Chris@0 | 20 } |
Chris@0 | 21 |
Chris@0 | 22 $cli = new PHP_CodeSniffer_CLI(); |
Chris@0 | 23 $cli->runphpcbf(); |