Skip to content

Commit 8cf1c84

Browse files
authored
Merge pull request #7 from mauriciofauth/valid-variable-name
Use custom rule instead of custom sniff
2 parents 00f7fc6 + baecb98 commit 8cf1c84

File tree

3 files changed

+6
-49
lines changed

3 files changed

+6
-49
lines changed

PMAStandard/Sniffs/NamingConventions/ValidVariableNameSniff.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

PMAStandard/ruleset.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@
3535
<property name="ignoreNewlines" value="true" />
3636
</properties>
3737
</rule>
38+
39+
<!-- Variable names should be camelCased with the first letter lowercase. -->
40+
<rule ref="Zend.NamingConventions.ValidVariableName">
41+
<exclude name="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
42+
</rule>
3843
</ruleset>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"issues": "https://github.com/phpmyadmin/coding-standard/issues"
1717
},
1818
"require": {
19-
"squizlabs/php_codesniffer": "^3.0"
19+
"squizlabs/php_codesniffer": "^3.2.3"
2020
}
2121
}

0 commit comments

Comments
 (0)