aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-30 00:44:24 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-10-30 00:44:24 +0100
commit94334992ecb85274995229145d9108384f142dad (patch)
treea5ad3bc74a67f5e993d9d273aeacea520fba7f4d
parent69a766fe79e8dab3e58c5774ae1044368333e072 (diff)
downloadforums-94334992ecb85274995229145d9108384f142dad.tar
forums-94334992ecb85274995229145d9108384f142dad.tar.gz
forums-94334992ecb85274995229145d9108384f142dad.tar.bz2
forums-94334992ecb85274995229145d9108384f142dad.tar.xz
forums-94334992ecb85274995229145d9108384f142dad.zip
[task/code-sniffer] Add Generic.Formatting.DisallowMultipleStatements
PHPBB3-11980
-rw-r--r--build/code_sniffer/ruleset-php-legacy.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml
index e8d7c79e84..669393f844 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -14,6 +14,9 @@
<!-- The body of each structure MUST be enclosed by braces. -->
<rule ref="Generic.ControlStructures.InlineControlStructure" />
+ <!-- There MUST not be more than one statement per line. -->
+ <rule ref="Generic.Formatting.DisallowMultipleStatements" />
+
<!-- Class constants MUST be declared in all upper case with underscore separators. -->
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />