Skip to content

Commit af5e870

Browse files
authored
Merge pull request #146 from php-http/cs
fix cs violation introduced when merging master to 2.x
2 parents d375665 + 7b6cdbe commit af5e870

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec/Plugin/RetryPluginSpec.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ public function it_respects_custom_exception_decider(RequestInterface $request,
109109
$this->beConstructedWith([
110110
'exception_decider' => function (RequestInterface $request, Exception $e) {
111111
return false;
112-
}
112+
},
113113
]);
114114
$exception = new Exception\NetworkException('Exception', $request->getWrappedObject());
115115

116116
$called = false;
117-
$next = function (RequestInterface $receivedRequest) use($exception, &$called) {
117+
$next = function (RequestInterface $receivedRequest) use ($exception, &$called) {
118118
if ($called) {
119119
throw new \RuntimeException('Did not expect to be called multiple times');
120120
}

src/Plugin/RetryPlugin.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ final class RetryPlugin implements Plugin
4848
/**
4949
* @param array $config {
5050
*
51-
* @var int $retries Number of retries to attempt if an exception occurs before letting the exception bubble up.
52-
* @var callable $exception_decider A callback that gets a request and an exception to decide after a failure whether the request should be retried.
53-
* @var callable $exception_delay A callback that gets a request, an exception and the number of retries and returns how many microseconds we should wait before trying again.
51+
* @var int $retries Number of retries to attempt if an exception occurs before letting the exception bubble up
52+
* @var callable $exception_decider A callback that gets a request and an exception to decide after a failure whether the request should be retried
53+
* @var callable $exception_delay A callback that gets a request, an exception and the number of retries and returns how many microseconds we should wait before trying again
5454
* }
5555
*/
5656
public function __construct(array $config = [])

0 commit comments

Comments
 (0)