Skip to content

Commit

Permalink
Add extra phpcs checks (#5)
Browse files Browse the repository at this point in the history
Squiz.WhiteSpace.MemberVarSpacing for enforcing new lines between class
properties.

PSR12.Functions.ReturnTypeDeclaration for how to write return types.
  • Loading branch information
arnoudhgz committed Jul 31, 2020
1 parent 73c4ea2 commit 042132b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MediactMagento2/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>

<rule ref="Squiz.WhiteSpace.MemberVarSpacing" >
<properties>
<property name="spacingBeforeFirst" value="0"/>
</properties>
</rule>

<rule ref="PSR12.Functions.ReturnTypeDeclaration" />
</ruleset>

0 comments on commit 042132b

Please sign in to comment.