src/UptimeRobot/API.php
private function getOptions($options)
    {
        $conf = [
            CURLOPT_HEADER => false,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_SSL_VERIFYPEER => false,
            CURLOPT_FOLLOWLOCATION => true
        ];

        if (isset($options['timeout'])) {
            $conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000;
        }
        if (isset($options['connect_timeout'])) {
            $conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000;
        }

        return $conf;
    }
private function getOptions($options)
    {
        $conf = [
            CURLOPT_HEADER => false,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_SSL_VERIFYPEER => false,
            CURLOPT_FOLLOWLOCATION => true
        ];

        if (isset($options['timeout'])) {
            $conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000;
        }
        if (isset($options['connect_timeout'])) {
            $conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000;
        }

        return $conf;
    }
private function getOptions ( $ options ) { $ conf = [ CURLOPT_HEADER => false , CURLOPT_RETURNTRANSFER => true , CURLOPT_SSL_VERIFYPEER => false , CURLOPT_FOLLOWLOCATION => true ] ; if ( isset ( $ options [ 'timeout' ] ) ) { $ conf [ CURLOPT_TIMEOUT_MS ] = $ options [ 'timeout' ] * 1000 ; } if ( isset ( $ options [ 'connect_timeout' ] ) ) { $ conf [ CURLOPT_CONNECTTIMEOUT_MS ] = $ options [ 'connect_timeout' ] * 1000 ; } return $ conf ; }
Get options for curl.

@param $options

@return array
Get options for curl .