Exakat\Analyzer\Php\ListWithAppends::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $this->atomFunctionIs(array('\\list', '\\array'))->hasIn('LEFT')->raw('where( __.out("ARGUMENTS").out("ARGUMENT").hasLabel("Arrayappend") )')->raw('where( __.sideEffect{ counters = [:]; }
                             .out("ARGUMENTS").out("ARGUMENT").hasLabel("Arrayappend").out("APPEND")
                             .sideEffect{ if (counters[it.get().value("code")] == null) { counters[it.get().value("code")] = 1; } else { counters[it.get().value("code")]++; } }
                             .fold() )
                    .filter{ counters.findAll{ it.value > 1}.size() > 0}')->back('first');
        $this->prepareQuery();
    }
ListWithAppends