protected function streamContextArray()
    {
        return [
            'http' => [
                // direct connection properties
                'method'           => $this->method,
                'header'           => $this->header,
                'content'          => $this->content,
                'protocol_version' => $this->protocolVersion,

                // options
                'ignore_errors'    => $this->getOption('ignore_errors'),
                'follow_location'  => $this->getOption('max_redirects') > 0,
                'max_redirects'    => $this->getOption('max_redirects') + 1,
                'timeout'          => $this->timeout === -1 ? 30 : $this->timeout
            ],
            'ssl' => [
                'verify_peer' => $this->getOption('verify_peer'),
                'verify_host' => $this->getOption('verify_host'),
            ]
        ];

    }
protected function streamContextArray()
    {
        return [
            'http' => [
                // direct connection properties
                'method'           => $this->method,
                'header'           => $this->header,
                'content'          => $this->content,
                'protocol_version' => $this->protocolVersion,

                // options
                'ignore_errors'    => $this->getOption('ignore_errors'),
                'follow_location'  => $this->getOption('max_redirects') > 0,
                'max_redirects'    => $this->getOption('max_redirects') + 1,
                'timeout'          => $this->timeout === -1 ? 30 : $this->timeout
            ],
            'ssl' => [
                'verify_peer' => $this->getOption('verify_peer'),
                'verify_host' => $this->getOption('verify_host'),
            ]
        ];

    }
protected function streamContextArray ( ) { return [ 'http' => [ // direct connection properties 'method' => $ this -> method , 'header' => $ this -> header , 'content' => $ this -> content , 'protocol_version' => $ this -> protocolVersion , // options 'ignore_errors' => $ this -> getOption ( 'ignore_errors' ) , 'follow_location' => $ this -> getOption ( 'max_redirects' ) > 0 , 'max_redirects' => $ this -> getOption ( 'max_redirects' ) + 1 , 'timeout' => $ this -> timeout === - 1 ? 30 : $ this -> timeout ] , 'ssl' => [ 'verify_peer' => $ this -> getOption ( 'verify_peer' ) , 'verify_host' => $ this -> getOption ( 'verify_host' ) , ] ] ; }
Build the beautiful array for stream_context_create

@return array

@throws \Ems\Contracts\Core\Errors\UnSupported
Build the beautiful array for stream_context_create