| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function __invoke(callable $handler): callable |
||
| 31 | { |
||
| 32 | return function(RequestInterface $request, array $options) use ($handler) { |
||
| 33 | $publicKey = $this->publicKeyGetter->getSealingKey($request); |
||
| 34 | |||
| 35 | return $handler( |
||
| 36 | $this->sapient->sealRequest($request, new SealingPublicKey(Base64UrlSafe::decode($publicKey))), |
||
| 37 | $options |
||
| 38 | ); |
||
| 42 |