| @@ 28-30 (lines=3) @@ | ||
| 25 | if (PHP_VERSION_ID >= 50302) { |
|
| 26 | if (file_exists($a = dirname(__FILE__).'/../../../autoload.php') === true) { |
|
| 27 | include_once $a; |
|
| 28 | } else if (file_exists($a = dirname(__FILE__).'/../vendor/autoload.php') === true) { |
|
| 29 | include_once $a; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| 33 | if (file_exists($a = dirname(__FILE__).'/../CodeSniffer.php') === true) { |
|
| @@ 33-39 (lines=7) @@ | ||
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| 33 | if (file_exists($a = dirname(__FILE__).'/../CodeSniffer.php') === true) { |
|
| 34 | // Running from a git clone. |
|
| 35 | include_once $a; |
|
| 36 | } else { |
|
| 37 | // PEAR installed. |
|
| 38 | include_once 'PHP/CodeSniffer.php'; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * A class to process command line phpcs scripts. |
|