PHPCS VariableAnalysis
PHP_Codesniffer-VariableAnalysis is a plugin for the PHP_CodeSniffer static analysis tool for PHP, adding static analysis of variable use within your PHP programs.
Features it add include:
Detection of unused variables.
Detection of undefined variables.
Redeclaration of variables.
Use of self:: static member variables outside their class.
Warning severity for each of these events can be tailored as can other customization options such as defining your own site list of pass-by-reference functions that can accept undefined variables, or a list of site-specific "junk" variables that are safe to be unused.
You can find more on my GitHub page for PHPCS VariableAnalysis.
Recent blog entries for PHPCS VariableAnalysis
I don't appear to have written any blog entries about this project yet.