1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

Making the function name consistent

This commit is contained in:
Michael Dowling 2015-09-06 12:22:10 -07:00
parent ec1f1a8b56
commit 2e3532155d

View File

@ -65,13 +65,13 @@ class StreamHandler
$e = new ConnectException($e->getMessage(), $request, $e);
}
$e = RequestException::wrapException($request, $e);
$this->invokeStatsFunction($options, $request, $startTime, null, $e);
$this->invokeStats($options, $request, $startTime, null, $e);
return new RejectedPromise($e);
}
}
private function invokeStatsFunction(
private function invokeStats(
array $options,
RequestInterface $request,
$startTime,
@ -122,7 +122,7 @@ class StreamHandler
$this->drain($stream, $sink);
}
$this->invokeStatsFunction($options, $request, $startTime, $response, null);
$this->invokeStats($options, $request, $startTime, $response, null);
return new FulfilledPromise($response);
}