Skip to content

Commit 687a1d6

Browse files
committed
replace squizlabs/php_codesniffer with phpcsstandards/php_codesniffer
1 parent 235cc5d commit 687a1d6

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
restore-keys: 'cache-composer-'
2828
- name: run composer
2929
run: composer update --prefer-lowest --prefer-dist --no-interaction --no-progress
30-
- run: xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd MO4/ruleset.xml
31-
- run: xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd phpcs.mo4.xml
32-
- run: xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd phpcs.xml.dist
30+
- run: xmllint --noout --schema vendor/phpcsstandards/php_codesniffer/phpcs.xsd MO4/ruleset.xml
31+
- run: xmllint --noout --schema vendor/phpcsstandards/php_codesniffer/phpcs.xsd phpcs.mo4.xml
32+
- run: xmllint --noout --schema vendor/phpcsstandards/php_codesniffer/phpcs.xsd phpcs.xml.dist
3333
- run: diff -B MO4/ruleset.xml <(xmllint --format MO4/ruleset.xml)
3434
- run: diff -B phpcs.mo4.xml <(xmllint --format phpcs.mo4.xml)
3535
- run: diff -B phpcs.xml.dist <(xmllint --format phpcs.xml.dist)
@@ -89,7 +89,7 @@ jobs:
8989
run: vendor/bin/phpunit
9090
- name: Run tests
9191
if: ${{ matrix.php_version == '8.1' }}
92-
run: vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php
92+
run: vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests vendor/phpcsstandards/php_codesniffer/tests/Standards/AllSniffs.php
9393
- name: Run integration tests
9494
run: vendor/bin/phpcs -s --standard=MO4 integrationtests/testfile.php
9595
- name: Run PHPStan

.phan/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'directory_list' => [
2323
'MO4',
2424
'tests',
25-
'vendor/squizlabs/php_codesniffer',
25+
'vendor/phpcsstandards/php_codesniffer',
2626
],
2727

2828
// A directory list that defines files that will be excluded

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ If `phpcs` complains that MO4 is not installed, please check the installed codin
144144

145145
## Dependencies
146146

147-
* [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)
147+
* [PHP CodeSniffer](https://github.com/phpcsstandards/PHP_CodeSniffer)
148148
* [David Joos's Symfony Coding Standard](https://github.com/djoos/Symfony-coding-standard)
149149
* [Composer installer for PHP_CodeSniffer coding standards](https://github.com/DealerDirect/phpcodesniffer-composer-installer)
150150
* [Slevomat Coding Standard](https://github.com/slevomat/coding-standard)

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"php": "~7.2 || ~8.0",
2727
"dealerdirect/phpcodesniffer-composer-installer": "~0.7",
2828
"escapestudios/symfony2-coding-standard": "^3.10.0",
29-
"slevomat/coding-standard": "^8.4",
30-
"squizlabs/php_codesniffer": "^3.6.2"
29+
"phpcsstandards/php_codesniffer": "^3.6.2",
30+
"slevomat/coding-standard": "^8.4"
3131
},
3232
"require-dev": {
3333
"ergebnis/composer-normalize": ">=2.19 <2.30",

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
>
77
<testsuites>
88
<testsuite name="MO4 Ruleset Test Suite">
9-
<file>vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php</file>
9+
<file>vendor/phpcsstandards/php_codesniffer/tests/Standards/AllSniffs.php</file>
1010
</testsuite>
1111
</testsuites>
1212
<filter>

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
$myStandardName = 'MO4';
1818

19-
require_once __DIR__.'/../vendor/squizlabs/php_codesniffer/tests/bootstrap.php';
19+
require_once __DIR__.'/../vendor/phpcsstandards/php_codesniffer/tests/bootstrap.php';
2020

2121
// Add this Standard.
2222
PHP_CodeSniffer\Config::setConfigData(

0 commit comments

Comments
 (0)