Mercurial > hg > isophonics-drupal-site
annotate vendor/squizlabs/php_codesniffer/bin/phpcbf @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@17 | 1 #!/usr/bin/env php |
Chris@17 | 2 <?php |
Chris@17 | 3 /** |
Chris@17 | 4 * PHP Code Beautifier and Fixer fixes violations of a defined coding standard. |
Chris@17 | 5 * |
Chris@17 | 6 * @author Greg Sherwood <gsherwood@squiz.net> |
Chris@17 | 7 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) |
Chris@17 | 8 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence |
Chris@17 | 9 */ |
Chris@17 | 10 |
Chris@17 | 11 if (is_file(__DIR__.'/../autoload.php') === true) { |
Chris@17 | 12 include_once __DIR__.'/../autoload.php'; |
Chris@17 | 13 } else { |
Chris@17 | 14 include_once 'PHP/CodeSniffer/autoload.php'; |
Chris@17 | 15 } |
Chris@17 | 16 |
Chris@17 | 17 $runner = new PHP_CodeSniffer\Runner(); |
Chris@17 | 18 $exitCode = $runner->runPHPCBF(); |
Chris@17 | 19 exit($exitCode); |