Exakat\Analyzer\Functions\CouldReturnVoid::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // function foo() {} // empty function
        $this->atomIs('Function')->outIs('BLOCK')->noAtomInside('Return')->back('first');
        $this->prepareQuery();
        // function foo() { } // always return ;
        $this->atomIs('Function')->outIs('BLOCK')->raw('where( __.emit( hasLabel("Return")).repeat( out(' . $this->linksDown . ') ).times(' . self::MAX_LOOPING . ').hasLabel("Return").out("RETURN").not(hasLabel("Void")).count().is(eq(0)) )')->back('first');
        $this->prepareQuery();
    }
CouldReturnVoid