Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 10 | public static function signRequest(RequestSigner $signer) |
|
16 | { |
||
17 | return function (callable $handler) use ($signer) { |
||
18 | return function (RequestInterface $request, array $options) use ($handler, $signer) { |
||
19 | 6 | return $handler($signer->signRequest($request), $options); |
|
20 | 6 | }; |
|
21 | 10 | }; |
|
22 | } |
||
23 | |||
36 |