diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-30 00:31:39 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-30 00:31:39 +0100 |
commit | 69a766fe79e8dab3e58c5774ae1044368333e072 (patch) | |
tree | fc93b484e8414ecf0b2e7849164563553c019e35 | |
parent | 27a180f5d2d4c4d36fe5ab5f632b4df87240b075 (diff) | |
download | forums-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
-rw-r--r-- | build/code_sniffer/ruleset-php-strict.xml | 4 |
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" /> |