comparison vendor/squizlabs/php_codesniffer/scripts/phpcbf @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 #!/usr/bin/env php
2 <?php
3 /**
4 * PHP Code Beautifier and Fixer
5 *
6 * PHP version 5
7 *
8 * @category PHP
9 * @package PHP_CodeSniffer
10 * @author Greg Sherwood <gsherwood@squiz.net>
11 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
13 * @link http://pear.php.net/package/PHP_CodeSniffer
14 */
15
16 if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) {
17 include_once dirname(__FILE__).'/../CodeSniffer/CLI.php';
18 } else {
19 include_once 'PHP/CodeSniffer/CLI.php';
20 }
21
22 $cli = new PHP_CodeSniffer_CLI();
23 $cli->runphpcbf();