Exakat\Analyzer\Namespaces\ShouldMakeAlias::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // No namespace ?
        $this->atomIs('Nsname')->hasOut('SUBNAME')->hasNoIn('USE')->hasNoParent('Namespace', 'NAME')->savePropertyAs('fullnspath', 'fnp')->outWithRank('SUBNAME', 0)->savePropertyAs('code', 'possibleAlias')->goToNamespace()->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Use").out("USE").filter{ it.get().value("fullnspath") == fnp}.count().is(eq(0)) )')->raw('where( __.out("BLOCK").out("ELEMENT").hasLabel("Use").out("USE").filter{ it.get().value("alias") == possibleAlias}.count().is(eq(0)) )')->back('first');
        $this->prepareQuery();
    }
ShouldMakeAlias