@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | $stopwatch = $this->stopwatch; |
| 31 | 31 | |
| 32 | - return function (callable $handler) use ($stopwatch) { |
|
| 32 | + return function(callable $handler) use ($stopwatch) { |
|
| 33 | 33 | |
| 34 | - return function ($request, array $options) use ($handler, $stopwatch) { |
|
| 34 | + return function($request, array $options) use ($handler, $stopwatch) { |
|
| 35 | 35 | $event = $stopwatch->start( |
| 36 | 36 | sprintf('%s %s', $request->getMethod(), $request->getUri()), |
| 37 | 37 | 'eight_points_guzzle' |
@@ -39,13 +39,13 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | return $handler($request, $options)->then( |
| 41 | 41 | |
| 42 | - function ($response) use ($event) { |
|
| 42 | + function($response) use ($event) { |
|
| 43 | 43 | $event->stop(); |
| 44 | 44 | |
| 45 | 45 | return $response; |
| 46 | 46 | }, |
| 47 | 47 | |
| 48 | - function ($reason) use ($event) { |
|
| 48 | + function($reason) use ($event) { |
|
| 49 | 49 | $event->stop(); |
| 50 | 50 | |
| 51 | 51 | return \GuzzleHttp\Promise\rejection_for($reason); |