Skip to content

Commit

Permalink
Remove more remnants of PEAR installation support
Browse files Browse the repository at this point in the history
Follow up after #4 and #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).
  • Loading branch information
jrfnl committed Feb 18, 2024
1 parent b2894ce commit 2ea0e5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
6 changes: 1 addition & 5 deletions bin/phpcbf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/

if (is_file(__DIR__.'/../autoload.php') === true) {
include_once __DIR__.'/../autoload.php';
} else {
include_once 'PHP/CodeSniffer/autoload.php';
}
require_once __DIR__.'/../autoload.php';

$runner = new PHP_CodeSniffer\Runner();
$exitCode = $runner->runPHPCBF();
Expand Down
6 changes: 1 addition & 5 deletions bin/phpcs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/

if (is_file(__DIR__.'/../autoload.php') === true) {
include_once __DIR__.'/../autoload.php';
} else {
include_once 'PHP/CodeSniffer/autoload.php';
}
require_once __DIR__.'/../autoload.php';

$runner = new PHP_CodeSniffer\Runner();
$exitCode = $runner->runPHPCS();
Expand Down
6 changes: 1 addition & 5 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@
define('PHP_CODESNIFFER_VERBOSITY', 0);
}

if (is_file(__DIR__.'/../autoload.php') === true) {
include_once __DIR__.'/../autoload.php';
} else {
include_once 'PHP/CodeSniffer/autoload.php';
}
require_once __DIR__.'/../autoload.php';

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

Expand Down

0 comments on commit 2ea0e5c

Please sign in to comment.