Exakat\Analyzer\Structures\GlobalUsage::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // global
        $this->atomIs('Global')->outIs('GLOBAL')->atomIs('Variable');
        $this->prepareQuery();
        $this->atomIs('Global')->outIs('GLOBAL')->atomIs('Assignation')->outIs('LEFT');
        $this->prepareQuery();
        // $GLOBALS as a whole
        $this->atomIs('Variable')->hasNoIn('VARIABLE')->codeIs('$GLOBALS', true);
        $this->prepareQuery();
        // $GLOBALS as a whole
        $this->atomIs('Array')->outIs('VARIABLE')->codeIs('$GLOBALS', true)->inIs('VARIABLE')->outIs('INDEX');
        $this->prepareQuery();
    }
GlobalUsage