Skip to content

Commit

Permalink
Check for two newlines after declare, enable ClassConstantVisibility …
Browse files Browse the repository at this point in the history
…fixer
  • Loading branch information
Majkl578 committed Jan 4, 2018
1 parent fb90375 commit d9fe763
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/Doctrine/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@
<!-- Require comma after last element in multi-line array -->
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<!-- Require presence of constant visibility -->
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility">
<properties>
<property name="fixable" type="boolean" value="true"/>
</properties>
</rule>
<!-- Forbid dead code -->
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
<!-- Forbid useless annotations - Git and LICENCE file provide more accurate information -->
Expand Down Expand Up @@ -131,6 +135,10 @@
name="spacesCountAroundEqualsSign"
value="0"
/>
<property
name="newlinesCountAfterDeclare"
value="2"
/>
</properties>
</rule>
<!-- Require use of short versions of scalar types (i.e. int instead of integer) -->
Expand Down

0 comments on commit d9fe763

Please sign in to comment.