Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff
File: ReasonPhraseBackoffStrategy.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Guzzle\Plugin\Backoff;
[2] Fix | Delete
[3] Fix | Delete
use Guzzle\Http\Message\RequestInterface;
[4] Fix | Delete
use Guzzle\Http\Message\Response;
[5] Fix | Delete
use Guzzle\Http\Exception\HttpException;
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Strategy used to retry HTTP requests when the response's reason phrase matches one of the registered phrases.
[9] Fix | Delete
*/
[10] Fix | Delete
class ReasonPhraseBackoffStrategy extends AbstractErrorCodeBackoffStrategy
[11] Fix | Delete
{
[12] Fix | Delete
public function makesDecision()
[13] Fix | Delete
{
[14] Fix | Delete
return true;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
protected function getDelay($retries, RequestInterface $request, Response $response = null, HttpException $e = null)
[18] Fix | Delete
{
[19] Fix | Delete
if ($response) {
[20] Fix | Delete
return isset($this->errorCodes[$response->getReasonPhrase()]) ? true : null;
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function