aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-15 21:07:24 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-16 22:35:39 +0200
commit06bf864c41eeb8e0232f124f5a0539cb4f788439 (patch)
treeb8b412bf6073d728f51791c375566bad4f944689 /build
parent34a4ba36cd554ebd3cab1bdbb422d97a9429bd72 (diff)
downloadforums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar
forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar.gz
forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar.bz2
forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar.xz
forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.zip
[ticket/12721] Add Generic.Functions.OpeningFunctionBraceBsdAllman
PHPBB3-12721
Diffstat (limited to 'build')
-rw-r--r--build/code_sniffer/ruleset-php-legacy.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml
index 175a993f48..71741ce190 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -23,6 +23,10 @@
<!-- Lowercase filenames are required. -->
<rule ref="Generic.Files.LowercasedFilename" />
+ <!-- Function declarations follow the "BSD/Allman style".
+ The function brace is on the line following the function declaration and is indented to the same column as the start of the function declaration. -->
+ <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman" />
+
<!-- There MUST be exactly one space after a cast. -->
<rule ref="Generic.Formatting.SpaceAfterCast" />