Skip to content

Commit

Permalink
[task/code-sniffer] Add PSR1.Classes.ClassDeclaration.MissingNamespace
Browse files Browse the repository at this point in the history
PHPBB3-11980
  • Loading branch information
bantu committed Oct 30, 2013
1 parent 3944efe commit 49269fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build/code_sniffer/ruleset-php-strict.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
</rule>
-->

<!-- A file MUST not contain more than one class/interface -->
<rule ref="Generic.Files.OneClassPerFile" />
<rule ref="Generic.Files.OneInterfacePerFile" />

<!-- The PHP constants true, false, and null MUST be in lower case. -->
<rule ref="Generic.PHP.LowerCaseConstant" />

Expand All @@ -38,6 +34,12 @@
<!-- Functions MUST NOT contain multiple empty lines in a row -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />

<!-- Classes etc. MUST be namespaced -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace" />

<!-- A file MUST not contain more than one class/interface -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses" />

<!-- When present, all use declarations MUST go after the namespace declaration.
There MUST be one use keyword per declaration.
There MUST be one blank line after the use block. -->
Expand Down

0 comments on commit 49269fb

Please sign in to comment.