Skip to content

Commit

Permalink
replace squizlabs/php_codesniffer with phpcsstandards/php_codesniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal committed Dec 1, 2023
1 parent 34c47b1 commit 2a14d3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/PHPStan/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ parameters:
- %currentWorkingDirectory%/SlevomatCodingStandard

bootstrapFiles:
- %currentWorkingDirectory%/vendor/squizlabs/php_codesniffer/autoload.php
- %currentWorkingDirectory%/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php
- %currentWorkingDirectory%/vendor/phpcsstandards/php_codesniffer/autoload.php
- %currentWorkingDirectory%/vendor/phpcsstandards/php_codesniffer/src/Util/Tokens.php
excludePaths:
- %currentWorkingDirectory%/tests/*/data/*
ignoreErrors:
Expand Down
4 changes: 2 additions & 2 deletions build/phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Slevomat Coding Standard" xsi:noNamespaceSchemaLocation="../vendor/squizlabs/php_codesniffer/phpcs.xsd">
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Slevomat Coding Standard" xsi:noNamespaceSchemaLocation="../vendor/phpcsstandards/php_codesniffer/phpcs.xsd">
<config name="php_version" value="70100"/>
<arg name="extensions" value="php"/>
<arg name="tab-width" value="4"/>
Expand All @@ -16,7 +16,7 @@
</rule>

<rule ref="Generic.Arrays.ArrayIndent">
<exclude name="Generic.Arrays.ArrayIndent.CloseBraceNotNewLine"/><!-- MultiLine items causes evaluation as multiLine array https://github.com/squizlabs/PHP_CodeSniffer/issues/1791 -->
<exclude name="Generic.Arrays.ArrayIndent.CloseBraceNotNewLine"/><!-- MultiLine items causes evaluation as multiLine array https://github.com/phpcsstandards/PHP_CodeSniffer/issues/1791 -->
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": "^7.2 || ^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
"phpstan/phpdoc-parser": "^1.23.1",
"squizlabs/php_codesniffer": "^3.7.1"
"phpcsstandards/php_codesniffer": "^3.7.1"
},
"require-dev": {
"phing/phing": "2.17.4",
Expand Down

0 comments on commit 2a14d3c

Please sign in to comment.