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

analyze() public method

public analyze ( )
    public function analyze()
    {
        //    if (count($anArray) > 0){    foreach ($anArray as $el){
        $this->atomIs('Ifthen')->hasNoOut('ELSE')->outIs('CONDITION')->atomInside('Functioncall')->fullnspathIs(array('\\count', '\\sizeof', '\\empty'))->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 0)->savePropertyAs('fullcode', 'var')->back('first')->outIs('THEN')->is('count', 1)->outWithRank('ELEMENT', 0)->atomIs('Foreach')->outIs('SOURCE')->samePropertyAs('fullcode', 'var')->back('first');
        $this->prepareQuery();
    }
UselessCheck