@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function __invoke(callable $handler) : \Closure |
| 35 | 35 | { |
| 36 | - return function (RequestInterface $request, array $options) use ($handler) { |
|
| 36 | + return function(RequestInterface $request, array $options) use ($handler) { |
|
| 37 | 37 | $options['on_stats'] = $this->getOnStatsCallback( |
| 38 | 38 | isset($options['on_stats']) ? $options['on_stats'] : null, |
| 39 | 39 | isset($options['request_id']) ? $options['request_id'] : null |
@@ -55,15 +55,15 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | protected function getOnStatsCallback($initialOnStats, $requestId) : \Closure |
| 57 | 57 | { |
| 58 | - return function (TransferStats $stats) use ($initialOnStats, $requestId) { |
|
| 58 | + return function(TransferStats $stats) use ($initialOnStats, $requestId) { |
|
| 59 | 59 | if (is_callable($initialOnStats)) { |
| 60 | 60 | call_user_func($initialOnStats, $stats); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - $this->dataCollector->addTotalTime((float)$stats->getTransferTime()); |
|
| 63 | + $this->dataCollector->addTotalTime((float) $stats->getTransferTime()); |
|
| 64 | 64 | |
| 65 | 65 | if (($this->logger instanceof Logger) && $requestId) { |
| 66 | - $this->logger->addTransferTimeByRequestId($requestId, (float)$stats->getTransferTime()); |
|
| 66 | + $this->logger->addTransferTimeByRequestId($requestId, (float) $stats->getTransferTime()); |
|
| 67 | 67 | } |
| 68 | 68 | }; |
| 69 | 69 | } |