You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -881,6 +883,40 @@ See the [PEAR.Functions.FunctionCallSignature](#pearfunctionsfunctioncallsignatu
881
883
882
884
## PSR12 Sniffs
883
885
886
+
### PSR12.Classes.AnonClassDeclaration
887
+
888
+
Property Name | Type | Default | Available Since
889
+
------------ | ---- | ------- | ---------------
890
+
indent | int | 4 | 3.5.0
891
+
892
+
> Note: The `indent` property is inherited from the [PSR2.Classes.ClassDeclaration](#psr2classesclassdeclaration) sniff.
893
+
894
+
This sniff checks the indent of a list of implemented or extended class names that have been split over multiple lines, and the indent of variables passed to the constructor that have been split over multiple lines. By default, this sniff ensures that the class names and passed variables are indented 4 spaces, but you can change the size of the indent by setting the `indent` property.
One of the rules that this sniff enforces is the indent of each condition in a control structure when the conditions have been split over multiple lines. By default, this sniff ensures that the conditions are indented 4 spaces, but you can change the size of the indent by setting the `indent` property.
0 commit comments