/** * Returns a bunch of information about a curl request. * * This method exists so it can easily be overridden and mocked. * * @param resource $curlHandle * @return array */ protected function curlStuff($curlHandle) { $return = null; $this->emit('curlStuff', [&$return]); // If nothing modified $return, we're using the default behavior. if (is_null($return)) { return parent::curlStufF($curlHandle); } else { return $return; } }