| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 2 | public function createRequest( |
|
| 13 | RequestInterface $request, |
||
| 14 | OpenIDClient $client, |
||
| 15 | array $claims |
||
| 16 | ): RequestInterface { |
||
| 17 | 2 | $clientId = $client->getMetadata()->getClientId(); |
|
| 18 | |||
| 19 | 2 | $claims = \array_merge($claims, [ |
|
| 20 | 2 | 'client_id' => $clientId, |
|
| 21 | ]); |
||
| 22 | |||
| 23 | 2 | $request->getBody()->write(\http_build_query($claims)); |
|
| 24 | |||
| 25 | 2 | return $request; |
|
| 26 | } |
||
| 28 |