aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer/ruleset-php-strict.xml
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-30 00:31:39 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-10-30 00:31:39 +0100
commit69a766fe79e8dab3e58c5774ae1044368333e072 (patch)
treefc93b484e8414ecf0b2e7849164563553c019e35 /build/code_sniffer/ruleset-php-strict.xml
parent27a180f5d2d4c4d36fe5ab5f632b4df87240b075 (diff)
downloadforums-69a766fe79e8dab3e58c5774ae1044368333e072.tar
forums-69a766fe79e8dab3e58c5774ae1044368333e072.tar.gz
forums-69a766fe79e8dab3e58c5774ae1044368333e072.tar.bz2
forums-69a766fe79e8dab3e58c5774ae1044368333e072.tar.xz
forums-69a766fe79e8dab3e58c5774ae1044368333e072.zip
[task/code-sniffer] Add OneClassPerFile and OneInterfacePerFile.
PHPBB3-11980
Diffstat (limited to 'build/code_sniffer/ruleset-php-strict.xml')
-rw-r--r--build/code_sniffer/ruleset-php-strict.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-strict.xml b/build/code_sniffer/ruleset-php-strict.xml
index 65b6763c57..3387a2c567 100644
--- a/build/code_sniffer/ruleset-php-strict.xml
+++ b/build/code_sniffer/ruleset-php-strict.xml
@@ -16,6 +16,10 @@
</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" />