src/PortaText/Client/Curl.php
private function assertCurlResult($curl, $result, $descriptor)
    {
        if ($result === false) {
            $error = curl_error($curl);
            @curl_close($curl);
            throw new RequestError($error, $descriptor);
        }
        @curl_close($curl);
        return $result;
    }
private function assertCurlResult($curl, $result, $descriptor)
    {
        if ($result === false) {
            $error = curl_error($curl);
            @curl_close($curl);
            throw new RequestError($error, $descriptor);
        }
        @curl_close($curl);
        return $result;
    }
private function assertCurlResult ( $ curl , $ result , $ descriptor ) { if ( $ result === false ) { $ error = curl_error ( $ curl ) ; @ curl_close ( $ curl ) ; throw new RequestError ( $ error , $ descriptor ) ; } @ curl_close ( $ curl ) ; return $ result ; }
Asserts that the curl result was successful.

@param resource $curl The curl resource.
@param mixed $result The result.
@param PortaText\Command\Descriptor $descriptor Command descriptor.

@return mixed
@throws PortaText\Exception\RequestError
Asserts that the curl result was successful .