diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-15 19:46:12 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-16 19:05:09 +0200 |
commit | ca3cdadd083dfa2e4e0596d17424c7d9b541785c (patch) | |
tree | 2f4b69bb96bc92e5934277d6621a4d934fc19bcc /build/code_sniffer | |
parent | 663c375f5c1547e80f79aae0775eed0039956699 (diff) | |
download | forums-ca3cdadd083dfa2e4e0596d17424c7d9b541785c.tar forums-ca3cdadd083dfa2e4e0596d17424c7d9b541785c.tar.gz forums-ca3cdadd083dfa2e4e0596d17424c7d9b541785c.tar.bz2 forums-ca3cdadd083dfa2e4e0596d17424c7d9b541785c.tar.xz forums-ca3cdadd083dfa2e4e0596d17424c7d9b541785c.zip |
[ticket/12722] Add Generic.Formatting.SpaceAfterCast in the legacy ruleset
PHPBB3-12722
Diffstat (limited to 'build/code_sniffer')
-rw-r--r-- | build/code_sniffer/ruleset-php-legacy.xml | 3 |
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 716215b48f..272c4840b6 100644 --- a/build/code_sniffer/ruleset-php-legacy.xml +++ b/build/code_sniffer/ruleset-php-legacy.xml @@ -20,6 +20,9 @@ <!-- Call-time pass-by-reference MUST not be used. --> <rule ref="Generic.Functions.CallTimePassByReference.NotAllowed" /> + <!-- There MUST be exactly one space after a cast. --> + <rule ref="Generic.Formatting.SpaceAfterCast" /> + <!-- Class constants MUST be declared in all upper case with underscore separators. --> <rule ref="Generic.NamingConventions.UpperCaseConstantName" /> |