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

analyze() public method

public analyze ( )
    public function analyze()
    {
        $this->atomFunctionIs(array('fopen', 'file_get_contents', 'file_put_contents'));
        $this->prepareQuery();
        $fileClasses = array('\\SplFileObject', '\\SplTempFileObject', '\\SplFileInfo');
        $this->atomIs('New')->outIs('NEW')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->atomIsNot(array('Variable', 'Array', 'Property', 'Staticproperty', 'Methodcall', 'Staticmethodcall'))->fullnspathIs($fileClasses);
        $this->prepareQuery();
        $this->atomIs(array('Staticmethodcall', 'Staticproperty', 'Staticconstant'))->outIs('CLASS')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->fullnspathIs($fileClasses);
        $this->prepareQuery();
    }
FileUsage