Exakat\Analyzer\Constants\CustomConstantUsage::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $exts = self::$docs->listAllAnalyzer('Extensions');
        $exts[] = 'php_constants';
        $c = array();
        foreach ($exts as $ext) {
            $inifile = str_replace('Extensions\\Ext', '', $ext) . '.ini';
            $ini = $this->loadIni($inifile);
            if (!empty($ini['constants'][0])) {
                $c[] = $ini['constants'];
            }
        }
        $constants = call_user_func_array('array_merge', $c);
        $constants = $this->makeFullNsPath($constants);
        $this->atomIs('Identifier')->analyzerIs('Constants/ConstantUsage')->fullnspathIsNot($constants);
        $this->prepareQuery();
        // @note NSnamed are OK by default (may be not always!)
        $this->atomIs('Nsname')->analyzerIs('Constants/ConstantUsage')->fullnspathIsNot($constants);
        $this->prepareQuery();
    }
CustomConstantUsage