Exakat\Analyzer\Structures\NoDirectUsage::analyze PHP Метод

analyze() публичный Метод

public analyze ( )
    public function analyze()
    {
        $functions = $this->loadIni('NoDirectUsage.ini', 'functions');
        $functionsFullNsPath = $this->makeFullNsPath($functions);
        // foreach(glob() as $x) {}
        $this->atomIs('Foreach')->outIs('SOURCE')->functioncallIs($functionsFullNsPath)->back('first');
        $this->prepareQuery();
        // Direct call with a function without check
        $this->atomFunctionIs($functionsFullNsPath)->hasIn('ARGUMENT');
        $this->prepareQuery();
        // Direct usage in an operation +, *, **
        $this->atomFunctionIs($functionsFullNsPath)->inIs(array('LEFT', 'RIGHT'))->atomIs(array('Addition', 'Multiplication', 'Power'));
        $this->prepareQuery();
    }
NoDirectUsage