{"repo":"sirbrillig/phpcs-variable-analysis","free":true,"listed":false,"github":"https://github.com/sirbrillig/phpcs-variable-analysis","clone":"git clone https://github.com/sirbrillig/phpcs-variable-analysis.git","description":"Find undefined and unused variables with the PHP Codesniffer static analysis tool.","language":"PHP","stars":144,"topics":["php-codesniffer","phpcs","unused-variables","static-analysis","undefined-variables","php","linting"],"license":null,"category":"dev-tools","readme_excerpt":"PHP CodeSniffer VariableAnalysis Plugin for PHP CodeSniffer static analysis tool that adds analysis of problematic variable use. - Warns if variables are used without being defined. (Sniff code: VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable ) - Warns if variables are used inside unset() without being defined. (Sniff code: VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedUnsetVariable ) - Warns if variables are set or declared but never used. (Sniff code: VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable ) - Warns if $this , self::$static member , static::$static member is used outside class scope. (Sniff codes: VariableAnalysis.CodeAnalysis.VariableAnalysis.SelfOutsideClass or VariableAnalysis.CodeAnalysis.VariableAnalysis.StaticOutsideClass ) Installation Requirements VariableAnalysis requires PHP 5.4 or higher and PHP CodeSniffer version 3.13.6 or higher. It also depends on PHPCSUtils version 1.2.3 or higher. If you install VariableAnalysis with Composer (the recommended method below), this dependency is installed for you automatically. If you install it standalone, you must install PHPCSUtils yourself; see the Standalone instructions. With PHPCS Composer Installer This is the easiest method. First, install phpcodesniffer-composer-installer for your project if you have not already. This will also install PHPCS. Then install these standards. You can then include the sniffs by adding a line like the following to your phpcs.xml file. It sh","default_branch":null,"files":null,"tree":[],"storefront":"/r/sirbrillig","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sirbrillig/phpcs-variable-analysis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}