I have a large PHP class that has a large variable/function declaration and I wanted to chek if all the variables/functions are being used in the script. Is there something that does this?
You could use PHP Mess Detector PHP Mess Detector with configuration file:
<?xml version="1.0"?>
<ruleset name="My first PHPMD rule set"
     xmlns="http://pmd.sf.net/ruleset/1.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
                 http://pmd.sf.net/ruleset_xml_schema.xsd"
     xsi:noNamespaceSchemaLocation="
                 http://pmd.sf.net/ruleset_xml_schema.xsd">
    <rule ref="rulesets/unusedcode.xml" />
</ruleset>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With