mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
Renaming Curl to CurlResult
This commit is contained in:
parent
ffbc688797
commit
b2e7ce47b3
2 changed files with 13 additions and 17 deletions
|
@ -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 ]);
|
||||
}
|
||||
|
||||
/**
|
Loading…
Add table
Add a link
Reference in a new issue