From cf6ffc5931b76398a9ebfe7a57d2724ac0d5129d Mon Sep 17 00:00:00 2001 From: Matthias Wirtz Date: Sun, 9 Apr 2023 17:12:30 +0200 Subject: [PATCH 1/2] drop support for slevomat/coding-standard v6 --- CakePHP/ruleset.xml | 3 --- composer.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CakePHP/ruleset.xml b/CakePHP/ruleset.xml index 543481a..c5dba13 100644 --- a/CakePHP/ruleset.xml +++ b/CakePHP/ruleset.xml @@ -154,9 +154,6 @@ - - - */config/* */templates/* diff --git a/composer.json b/composer.json index bb1e938..4e593b5 100644 --- a/composer.json +++ b/composer.json @@ -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": { From d57dc99d9489aa1bf81ef9d715c82ad9a3d62abe Mon Sep 17 00:00:00 2001 From: Matthias Wirtz Date: Sun, 9 Apr 2023 17:26:54 +0200 Subject: [PATCH 2/2] regenerate docs --- docs/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/README.md b/docs/README.md index e5727fe..225fe6f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # CakePHP ruleset -The CakePHP standard contains 136 sniffs +The CakePHP standard contains 135 sniffs CakePHP (19 sniffs) ------------------- @@ -52,10 +52,9 @@ Generic (25 sniffs) - Generic.WhiteSpace.IncrementDecrementSpacing - Generic.WhiteSpace.ScopeIndent -PEAR (2 sniffs) +PEAR (1 sniff) --------------- - PEAR.Functions.ValidDefaultValue -- PEAR.NamingConventions.ValidFunctionName PSR1 (3 sniffs) --------------- @@ -63,11 +62,12 @@ PSR1 (3 sniffs) - 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 @@ -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 @@ -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