aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-15 20:52:51 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-16 22:35:12 +0200
commit34a4ba36cd554ebd3cab1bdbb422d97a9429bd72 (patch)
treecaa56f72f2bfb25dd8e537d87bbfcdf4e870e1ff /build
parent1aec0d29fd573950d5fbfd224997aac546df9b05 (diff)
downloadforums-34a4ba36cd554ebd3cab1bdbb422d97a9429bd72.tar
forums-34a4ba36cd554ebd3cab1bdbb422d97a9429bd72.tar.gz
forums-34a4ba36cd554ebd3cab1bdbb422d97a9429bd72.tar.bz2
forums-34a4ba36cd554ebd3cab1bdbb422d97a9429bd72.tar.xz
forums-34a4ba36cd554ebd3cab1bdbb422d97a9429bd72.zip
[ticket/12721] Add Squiz.Arrays.ArrayBracketSpacing in the legacy ruleset
PHPBB3-12721
Diffstat (limited to 'build')
-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 fe42d25431..175a993f48 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -38,6 +38,9 @@
<!-- Each file MUST end with exactly one newline character -->
<rule ref="PSR2.Files.EndFileNewline" />
+ <!-- When referencing arrays you should not put whitespace around the opening bracket or before the closing bracket. -->
+ <rule ref="Squiz.Arrays.ArrayBracketSpacing" />
+
<!-- In the argument list, there MUST NOT be a space before each comma,
and there MUST be one space after each comma. -->
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">