Skip to content

Commit

Permalink
Merge pull request #346 from PHPCSStandards/feature/remove-more-pear-…
Browse files Browse the repository at this point in the history
…install-remnants

Remove more remnants of PEAR installation support
  • Loading branch information
jrfnl authored Feb 18, 2024
2 parents fbde507 + a31ef61 commit a788d54
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 a788d54

Please sign in to comment.