Exakat\Analyzer\Classes\WrongCase::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // New
        $this->atomIs('New')->outIs('NEW')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        $this->atomIs('New')->outIs('NEW')->tokenIs('T_NS_SEPARATOR')->outIsIE('NAME')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        // staticMethodcall
        $this->atomIs('Staticmethodcall')->outIs('CLASS')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        $this->atomIs('Staticmethodcall')->outIs('CLASS')->tokenIs('T_NS_SEPARATOR')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        // Staticproperty
        $this->atomIs('Staticproperty')->outIs('CLASS')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        $this->atomIs('Staticproperty')->outIs('CLASS')->tokenIs('T_NS_SEPARATOR')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        // Staticconstant
        $this->atomIs('Staticconstant')->outIs('CLASS')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        $this->atomIs('Staticconstant')->outIs('CLASS')->tokenIs('T_NS_SEPARATOR')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        // Catch
        $this->atomIs('Catch')->outIs('CLASS')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        $this->atomIs('Catch')->outIs('CLASS')->tokenIs('T_NS_SEPARATOR')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        // Typehint
        $this->atomIs('Function')->outIs('ARGUMENTS')->outIs('ARGUMENT')->outIs('TYPEHINT')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first')->outIs('ARGUMENTS')->outIs('ARGUMENT');
        $this->prepareQuery();
        $this->atomIs('Function')->outIs('ARGUMENTS')->outIs('ARGUMENT')->outIs('TYPEHINT')->tokenIs('T_NS_SEPARATOR')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first')->outIs('ARGUMENTS')->outIs('ARGUMENT');
        $this->prepareQuery();
        // instance of
        $this->atomIs('Instanceof')->outIs('CLASS')->tokenIs('T_STRING')->codeIsNot(array('static', 'parent', 'self'))->savePropertyAs('code', 'classe')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
        $this->atomIs('Instanceof')->outIs('CLASS')->tokenIs('T_NS_SEPARATOR')->outWithRank('SUBNAME', 'last')->savePropertyAs('code', 'classe')->inIs('SUBNAME')->classDefinition()->outIs('NAME')->samePropertyAs('code', 'classe')->notSamePropertyAs('code', 'classe', true)->back('first');
        $this->prepareQuery();
    }
WrongCase