Exakat\Analyzer\Structures\UnreachableCode::analyze PHP Метод

analyze() публичный Метод

public analyze ( )
    public function analyze()
    {
        // code after a halt_compiler is expected to be unreachable.
        $this->atomIs('Return')->nextSiblings()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomIs('Throw')->nextSiblings()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomIs('Break')->nextSiblings()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomIs('Continue')->nextSiblings()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomIs('Goto')->nextSiblings()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomFunctionIs(array('\\exit', '\\die'))->nextSiblings()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomIs('Functioncall')->hasNoIn('METHOD')->tokenIs(array('T_STRING', 'T_NS_SEPARATOR'))->functionDefinition()->analyzerIs('Functions/KillsApp')->back('first')->nextSibling()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'));
        $this->prepareQuery();
        $this->atomIs('Ifthen')->outIs('THEN')->outIs('ELEMENT')->atomIs(array('Return', 'Continue', 'Break'))->back('first')->outIs('ELSE')->outIs('ELEMENT')->atomIs(array('Return', 'Continue', 'Break'))->back('first')->nextSibling()->atomIsNot(array('Label', 'Class', 'Function', 'Interface', 'Trait'))->back('first');
        $this->prepareQuery();
    }
UnreachableCode