Skip to content

Commit

Permalink
Merge pull request #400 from cakephp/closure-sniff
Browse files Browse the repository at this point in the history
Remove unneded ClosureDeclarationSniff.
  • Loading branch information
dereuromark authored Nov 30, 2024
2 parents 8d2711b + 331e489 commit fed52b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 123 deletions.
52 changes: 0 additions & 52 deletions CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php

This file was deleted.

39 changes: 0 additions & 39 deletions CakePHP/Tests/Functions/ClosureDeclarationUnitTest.inc

This file was deleted.

28 changes: 0 additions & 28 deletions CakePHP/Tests/Functions/ClosureDeclarationUnitTest.php

This file was deleted.

6 changes: 5 additions & 1 deletion CakePHP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.NamedArgumentSpacing"/>
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration">
<properties>
<property name="spacesCountAfterKeyword" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing"/>
<rule ref="SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment"/>

Expand Down
5 changes: 2 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# CakePHP ruleset

The CakePHP standard contains 153 sniffs
The CakePHP standard contains 152 sniffs

CakePHP (20 sniffs)
CakePHP (19 sniffs)
-------------------
- CakePHP.Classes.ReturnTypeHint
- CakePHP.Commenting.DocBlockAlignment
Expand All @@ -13,7 +13,6 @@ CakePHP (20 sniffs)
- CakePHP.ControlStructures.ElseIfDeclaration
- CakePHP.ControlStructures.WhileStructures
- CakePHP.Formatting.BlankLineBeforeReturn
- CakePHP.Functions.ClosureDeclaration
- CakePHP.NamingConventions.ValidFunctionName
- CakePHP.NamingConventions.ValidTraitName
- CakePHP.PHP.DisallowShortOpenTag
Expand Down

0 comments on commit fed52b6

Please sign in to comment.