issues
search
aik099
/
CodingStandard
The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5
stars
2
forks
source link
Add sub-optimal variable sniffs
#9
Open
aik099
opened
10 years ago
aik099
commented
10 years ago
Add Sniff for:
detecting unused variables
detecting undefined variables (even 2 or more mentions of the variable)
detect if variable value is assigned several times (e.g. reused temp variable)
Resources
https://www.google.com/search?q=php_codesniffer+variable+case&oq=php_codesniffer+variable+case&aqs=chrome..69i57.7045j0j7&sourceid=chrome&espv=210&es_sm=119&ie=UTF-8#q=php_codesniffer+variable+name&safe=off
https://github.com/AlanOne/PHP_Codesniffer-Plugins
Add Sniff for:
Resources