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

analyze() public method

public analyze ( )
    public function analyze()
    {
        // if ($a) {} elseif ($a1) {} else {}
        $this->atomIs('Ifthen')->outIs('CONDITION')->savePropertyAs('fullcode', 'condition')->_as('results')->inIs('CONDITION')->raw('where( __.repeat( __.out("ELSE").coalesce(hasLabel("Sequence").has("count", 1).out("ELEMENT").hasLabel("Ifthen"),  __.filter{true} )).emit().times(' . self::MAX_LOOPING . ').out("CONDITION").filter{ it.get().value("fullcode") == condition; } )')->back('first');
        $this->prepareQuery();
    }
SameConditions