diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-15 23:25:41 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-16 22:35:46 +0200 |
commit | 6b52155a2aefc26036a0246fbefd9fe3dc3f2696 (patch) | |
tree | 950cbd49faf7e51d3107d6408a25dc16b8215107 /build/code_sniffer/ruleset-php-strict.xml | |
parent | 13c03b6fcf47a1ce496521b70c2acf37fd9a51b9 (diff) | |
download | forums-6b52155a2aefc26036a0246fbefd9fe3dc3f2696.tar forums-6b52155a2aefc26036a0246fbefd9fe3dc3f2696.tar.gz forums-6b52155a2aefc26036a0246fbefd9fe3dc3f2696.tar.bz2 forums-6b52155a2aefc26036a0246fbefd9fe3dc3f2696.tar.xz forums-6b52155a2aefc26036a0246fbefd9fe3dc3f2696.zip |
[ticket/12721] Add Generic.NamingConventions.ConstructorName in strict
PHPBB3-12721
Diffstat (limited to 'build/code_sniffer/ruleset-php-strict.xml')
-rw-r--r-- | build/code_sniffer/ruleset-php-strict.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-strict.xml b/build/code_sniffer/ruleset-php-strict.xml index f2d5b86dd1..c722f7851c 100644 --- a/build/code_sniffer/ruleset-php-strict.xml +++ b/build/code_sniffer/ruleset-php-strict.xml @@ -22,6 +22,9 @@ <!-- PHP keywords MUST be in lower case. --> <rule ref="Generic.PHP.LowerCaseKeyword" /> + <!-- Constructors MUST be called __construct() instead of after the class. --> + <rule ref="Generic.NamingConventions.ConstructorName" /> + <!-- Classes etc. MUST be namespaced --> <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace" /> |