comparison vendor/squizlabs/php_codesniffer/bin/phpcbf @ 4:a9cd425dd02b

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