Exakat\Analyzer\Security\CurlOptions::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $options = array('\\curlopt_ssl_verifypeer', '\\curlopt_ssl_verifyhost');
        // Via curl_setopt
        $this->atomFunctionIs('\\curl_setopt')->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 1)->atomIs(array('Identifier', 'Nsname'))->fullnspathIs($options)->inIs('ARGUMENT')->outWithRank('ARGUMENT', 2)->analyzerIs('Structures/Falsy')->back('first');
        $this->prepareQuery();
        // Via curl_setopt_array (actually, any array with key => value that fit the options
        $this->atomFunctionIs('\\array')->outIs('ARGUMENTS')->outIs('ARGUMENT')->atomIs('Keyvalue')->outIs('KEY')->atomIs(array('Identifier', 'Nsname'))->fullnspathIs($options)->inIs('KEY')->outIs('VALUE')->analyzerIs('Structures/Falsy')->back('first');
        $this->prepareQuery();
    }