|
@@ -32,8 +32,8 @@ |
|
|
block discarded – undo |
|
32
|
32
|
*/ |
|
33
|
33
|
public function handle() : callable |
|
34
|
34
|
{ |
|
35
|
|
- return function (callable $handler): callable { |
|
36
|
|
- return function (RequestInterface $request, array $options) use ($handler) : callable { |
|
|
35
|
+ return function(callable $handler): callable { |
|
|
36
|
+ return function(RequestInterface $request, array $options) use ($handler) : callable { |
|
37
|
37
|
if (!$this->_requestLimitGroup->canRequest()) { |
|
38
|
38
|
throw new TooManyRequestsHttpException( |
|
39
|
39
|
$this->_requestLimitGroup->getRetryAfter(), |
Please login to merge, or discard this patch.