File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 "data-values/data-values" : " ~0.1|~1.0"
2929 },
3030 "require-dev" : {
31- "squizlabs/php_codesniffer" : " ~2.1"
31+ "squizlabs/php_codesniffer" : " ~2.1" ,
32+ "phpmd/phpmd" : " ~2.1"
3233 },
3334 "autoload" : {
3435 "files" : [
4950 " phpunit"
5051 ],
5152 "cs" : [
52- " vendor/bin/phpcs src/* tests/* --standard=phpcs.xml --extensions=php -sp"
53+ " composer phpcs" ,
54+ " composer phpmd"
5355 ],
5456 "ci" : [
5557 " composer test" ,
5658 " composer cs"
59+ ],
60+ "phpcs" : [
61+ " vendor/bin/phpcs src/* tests/* --standard=phpcs.xml --extensions=php -sp"
62+ ],
63+ "phpmd" : [
64+ " vendor/bin/phpmd src/ text phpmd.xml"
5765 ]
5866 }
5967}
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <ruleset xmlns =" http://pmd.sf.net/ruleset/1.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
5+ xsi : noNamespaceSchemaLocation =" http://pmd.sf.net/ruleset_xml_schema.xsd" >
6+
7+ <rule ref =" rulesets/codesize.xml" >
8+ <exclude name =" TooManyMethods" />
9+ <exclude name =" ExcessiveClassComplexity" />
10+ </rule >
11+ <rule ref =" rulesets/codesize.xml/TooManyMethods" >
12+ <properties >
13+ <property name =" maxmethods" value =" 20" />
14+ </properties >
15+ </rule >
16+
17+ <!-- todo: exclude the camel case method rule for the tests -->
18+ <rule ref =" rulesets/controversial.xml" />
19+
20+ <rule ref =" rulesets/design.xml" />
21+
22+ <rule ref =" rulesets/naming.xml" >
23+ <exclude name =" ShortVariable" />
24+ <exclude name =" LongVariable" />
25+ </rule >
26+
27+ <rule ref =" rulesets/unusedcode.xml" >
28+ <exclude name =" UnusedLocalVariable" />
29+ </rule >
30+ </ruleset >
Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ abstract public function getObjectType();
6969 *
7070 * @param array|Traversable|null $input
7171 * @param int $flags
72- * @param string $iterator_class
72+ * @param string $iteratorClass
7373 *
7474 * @throws InvalidArgumentException
7575 */
76- public function __construct ( $ input = null , $ flags = 0 , $ iterator_class = 'ArrayIterator ' ) {
77- parent ::__construct ( array (), $ flags , $ iterator_class );
76+ public function __construct ( $ input = null , $ flags = 0 , $ iteratorClass = 'ArrayIterator ' ) {
77+ parent ::__construct ( array (), $ flags , $ iteratorClass );
7878
7979 if ( $ input !== null ) {
8080 if ( !is_array ( $ input ) && !( $ input instanceof Traversable ) ) {
You can’t perform that action at this time.
0 commit comments