Exakat\Analyzer\Cakephp\Cake33DeprecatedStaticmethodcall::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $staticcalls = array('\\cake\\routing\\router' => array('mapResources', 'redirect', 'parseNamedParams'));
        $methodcalls = array(array('statusCode', 'encoding', 'header', 'cookie', 'version'));
        $deprecatedClasses = array('\\cake\\utility\\crypto\\mcrypt');
        $deprecatedInterface = array();
        $deprecatedTrait = array('\\cake\\routing\\requestactiontrait');
        // Static methods calls
        foreach ($staticcalls as $class => $methods) {
            $this->atomIs('Staticmethodcall')->outIs('CLASS')->fullnspathIs($class)->inIs('CLASS')->outIs('METHOD')->atomIs('Identifier')->codeIs($methods)->back('first');
            $this->prepareQuery();
        }
        // Classes
        $this->atomIs('Class')->fullnspathIs($deprecatedClasses);
        $this->prepareQuery();
        // Interfaces
        $this->atomIs('Class')->fullnspathIs($deprecatedClasses);
        $this->prepareQuery();
        // Classes
        $this->atomIs('Class')->fullnspathIs($deprecatedClasses);
        $this->prepareQuery();
    }
Cake33DeprecatedStaticmethodcall