mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-21 16:22:22 +02:00
[task/code-sniffer] Add PSR1.Classes.ClassDeclaration.MissingNamespace
PHPBB3-11980
This commit is contained in:
parent
3944efe528
commit
49269fbdf4
@ -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" />
|
||||
|
||||
@ -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. -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user