Conditions | 2 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function __invoke(callable $handler) : \Closure |
||
28 | { |
||
29 | return function ( |
||
30 | RequestInterface $request, |
||
31 | array $options |
||
32 | ) use ($handler) { |
||
33 | $options['on_stats'] = $this->getOnStatsCallback(isset($options['on_stats']) ? $options['on_stats'] : null); |
||
34 | |||
35 | // Continue the handler chain. |
||
36 | return $handler($request, $options); |
||
37 | }; |
||
59 |