Skip to content

Commit 5740d3a

Browse files
committed
disallow multiple structures per file
1 parent 87308f5 commit 5740d3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Doctrine/ruleset.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
4343
<!-- Forbid inline HTML in PHP code -->
4444
<rule ref="Generic.Files.InlineHTML"/>
45+
<!-- Only one structure (class/interface/trait) should be allowed per file -->
46+
<rule ref="Generic.Files.OneObjectStructurePerFile" />
4547
<!-- Align corresponding assignment statement tokens -->
4648
<rule ref="Generic.Formatting.MultipleStatementAlignment">
4749
<properties>

0 commit comments

Comments
 (0)