Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneded ClosureDeclarationSniff. #400

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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