Skip to content

Commit a31ef61

Browse files
committed
Remove more remnants of PEAR installation support
Follow up after PHPCSStandards#4 and PHPCSStandards#39 The alternative path referred to in the bin scripts and the test bootstrap was specific for running via a PEAR install. This should no longer be needed (nor will this work).
1 parent 6f7c596 commit a31ef61

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

bin/phpcbf

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
99
*/
1010

11-
if (is_file(__DIR__.'/../autoload.php') === true) {
12-
include_once __DIR__.'/../autoload.php';
13-
} else {
14-
include_once 'PHP/CodeSniffer/autoload.php';
15-
}
11+
require_once __DIR__.'/../autoload.php';
1612

1713
$runner = new PHP_CodeSniffer\Runner();
1814
$exitCode = $runner->runPHPCBF();

bin/phpcs

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
99
*/
1010

11-
if (is_file(__DIR__.'/../autoload.php') === true) {
12-
include_once __DIR__.'/../autoload.php';
13-
} else {
14-
include_once 'PHP/CodeSniffer/autoload.php';
15-
}
11+
require_once __DIR__.'/../autoload.php';
1612

1713
$runner = new PHP_CodeSniffer\Runner();
1814
$exitCode = $runner->runPHPCS();

tests/bootstrap.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919
define('PHP_CODESNIFFER_VERBOSITY', 0);
2020
}
2121

22-
if (is_file(__DIR__.'/../autoload.php') === true) {
23-
include_once __DIR__.'/../autoload.php';
24-
} else {
25-
include_once 'PHP/CodeSniffer/autoload.php';
26-
}
22+
require_once __DIR__.'/../autoload.php';
2723

2824
$tokens = new \PHP_CodeSniffer\Util\Tokens();
2925

0 commit comments

Comments
 (0)