From: Stricted Date: Wed, 10 Jun 2015 17:07:09 +0000 (+0200) Subject: add Traits to codesniffer X-Git-Tag: 3.0.0_Beta_1~2275^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ccb121cb65703b33603f0964f3691e94426f49d0;p=GitHub%2FWoltLab%2FWCF.git add Traits to codesniffer --- diff --git a/CodeSniff/WCF/Sniffs/Classes/ClassFileNameSniff.php b/CodeSniff/WCF/Sniffs/Classes/ClassFileNameSniff.php index 4997382919..6a531188d3 100644 --- a/CodeSniff/WCF/Sniffs/Classes/ClassFileNameSniff.php +++ b/CodeSniff/WCF/Sniffs/Classes/ClassFileNameSniff.php @@ -20,6 +20,7 @@ class WCF_Sniffs_Classes_ClassFileNameSniff implements PHP_CodeSniffer_Sniff { return array( T_CLASS, T_INTERFACE, + T_TRAIT, ); } diff --git a/CodeSniff/WCF/ruleset.xml b/CodeSniff/WCF/ruleset.xml index 411c89a0ab..8c7fb0a697 100644 --- a/CodeSniff/WCF/ruleset.xml +++ b/CodeSniff/WCF/ruleset.xml @@ -14,6 +14,7 @@ +