Renaming Curl to CurlResult

This commit is contained in:
Philipp Holzer 2018-10-10 22:08:13 +02:00
parent ffbc688797
commit b2e7ce47b3
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 13 additions and 17 deletions

View file

@ -8,7 +8,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
/**
* A content class for Curl call results
*/
class Curl
class CurlResult
{
/**
* @var int HTTP return code or 0 if timeout or failure
@ -75,15 +75,11 @@ class Curl
*
* @param string $url optional URL
*
* @return Curl a CURL with error response
* @return CurlResult a CURL with error response
*/
public static function createErrorCurl($url = '')
{
return new Curl(
$url,
'',
[ 'http_code' => 0 ]
);
return new CurlResult($url,'', [ 'http_code' => 0 ]);
}
/**