Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.

Commit abe63ce

Browse files
committed
Load PHP_CodeShiffer as a Composer package instead of PEAR
1 parent a7bd7ac commit abe63ce

File tree

3 files changed

+66
-29
lines changed

3 files changed

+66
-29
lines changed

composer.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,8 @@
77
"email": "[email protected]"
88
}
99
],
10-
"repositories": [
11-
{
12-
"type": "pear",
13-
"url": "http://pear.php.net",
14-
"vendor-alias": "pear"
15-
}
16-
],
17-
"require": {
18-
"pear/PHP_CodeSniffer": "1.4.*",
10+
"require": {
11+
"squizlabs/php_codesniffer": "1.4.*",
1912
"symfony/process": "dev-master"
2013
},
2114
"autoload": {

composer.lock

Lines changed: 63 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DiffSniffer/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct()
6161
global $DIFF_SNIFFER_CORE_ROOT;
6262
global $DIFF_SNIFFER_APP_ROOT;
6363

64-
$phpCsBin = $DIFF_SNIFFER_APP_ROOT . '/vendor/bin/phpcs';
64+
$phpCsBin = $DIFF_SNIFFER_APP_ROOT . '/vendor/squizlabs/php_codesniffer/scripts/phpcs';
6565
if (!is_file($phpCsBin)) {
6666
throw new \RuntimeException('Path to CodeSniffer is not a file');
6767
}

0 commit comments

Comments
 (0)