Skip to content

Commit 84b8d22

Browse files
gsherwoodjrfnl
authored andcommitted
Added docs for PSR12.Operators.OperatorSpacing
1 parent 6594d3c commit 84b8d22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

wiki/Customisable-Sniff-Properties.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ For more information about changing sniff behaviour by customising your ruleset,
3939
* [PSR2.Methods.FunctionCallSignature](#psr2methodsfunctioncallsignature)
4040
* PSR12 Sniffs
4141
* [PSR12.Namespaces.CompoundNamespaceDepth](#psr12namespacescompoundnamespacedepth)
42+
* [PSR12.Operators.OperatorSpacing](#psr12operatorsoperatorspacing)
4243
* Squiz Sniffs
4344
* [Squiz.Classes.ClassDeclaration](#squizclassesclassdeclaration)
4445
* [Squiz.Commenting.LongConditionClosingComment](#squizcommentinglongconditionclosingcomment)
@@ -896,6 +897,18 @@ This sniff checks the depth of imported namespaces inside compound use statement
896897
</rule>
897898
```
898899

900+
### PSR12.Operators.OperatorSpacing
901+
902+
Property Name | Type | Default | Available Since
903+
------------------------------ | ---- | ------- | ---------------
904+
ignoreNewlines | bool | false | 3.3.0
905+
ignoreSpacingBeforeAssignments | bool | true | 3.5.0
906+
907+
> Note: All properties are inherited from the [Squiz.WhiteSpace.OperatorSpacing](#squizwhitespaceoperatorspacing) sniff, although the default value of `allowMultipleArguments` is changed.
908+
909+
See the [Squiz.WhiteSpace.OperatorSpacing](#squizwhitespaceoperatorspacing) sniff for an explanation of all properties.
910+
911+
899912

900913

901914

0 commit comments

Comments
 (0)