Skip to content

Commit

Permalink
Merge pull request #385 from swiffer/4.x
Browse files Browse the repository at this point in the history
drop support for slevomat/coding-standard v6
  • Loading branch information
othercorey authored Apr 10, 2023
2 parents 8447c04 + d57dc99 commit 24fa232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions CakePHP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@
<property name="linesCountBeforeDeclare" value="0"/>
<property name="linesCountAfterDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
<!-- Property names used in slevomat/coding-standard v6 -->
<property name="newlinesCountAfterDeclare" value="2"/>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
</properties>
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/templates/*</exclude-pattern>
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 @@
},
"require": {
"php": ">=7.2.0",
"slevomat/coding-standard": "^6.3.6 || ^7.0 || ^8.0",
"slevomat/coding-standard": "^7.0 || ^8.0",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
Expand Down
11 changes: 5 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CakePHP ruleset

The CakePHP standard contains 136 sniffs
The CakePHP standard contains 135 sniffs

CakePHP (19 sniffs)
-------------------
Expand Down Expand Up @@ -52,22 +52,22 @@ Generic (25 sniffs)
- Generic.WhiteSpace.IncrementDecrementSpacing
- Generic.WhiteSpace.ScopeIndent

PEAR (2 sniffs)
PEAR (1 sniff)
---------------
- PEAR.Functions.ValidDefaultValue
- PEAR.NamingConventions.ValidFunctionName

PSR1 (3 sniffs)
---------------
- PSR1.Classes.ClassDeclaration
- PSR1.Files.SideEffects
- PSR1.Methods.CamelCapsMethodName

PSR12 (16 sniffs)
PSR12 (17 sniffs)
-----------------
- PSR12.Classes.AnonClassDeclaration
- PSR12.Classes.ClassInstantiation
- PSR12.Classes.ClosingBrace
- PSR12.Classes.OpeningBraceSpace
- PSR12.ControlStructures.BooleanOperatorPlacement
- PSR12.ControlStructures.ControlStructureSpacing
- PSR12.Files.DeclareStatement
Expand Down Expand Up @@ -129,7 +129,7 @@ SlevomatCodingStandard (32 sniffs)
- SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable

Squiz (29 sniffs)
Squiz (28 sniffs)
-----------------
- Squiz.Arrays.ArrayBracketSpacing
- Squiz.Classes.ClassFileName
Expand All @@ -144,7 +144,6 @@ Squiz (29 sniffs)
- Squiz.Functions.FunctionDeclarationArgumentSpacing
- Squiz.Functions.LowercaseFunctionKeywords
- Squiz.Functions.MultiLineFunctionDeclaration
- Squiz.NamingConventions.ValidFunctionName
- Squiz.Operators.ValidLogicalOperators
- Squiz.PHP.DisallowSizeFunctionsInLoops
- Squiz.PHP.Eval
Expand Down

0 comments on commit 24fa232

Please sign in to comment.