| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function getAction($_format) |
||
| 40 | { |
||
| 41 | if ('json' === $_format) { |
||
| 42 | $value = json_encode($this->jwkset); |
||
| 43 | $ct = 'application/jwk-set+json; charset=UTF-8'; |
||
| 44 | } else { |
||
| 45 | $value = json_encode($this->jwkset->toPEM()); |
||
| 46 | $ct = 'application/json; charset=UTF-8'; |
||
| 47 | } |
||
| 48 | |||
| 49 | return new Response($value, Response::HTTP_OK, ['content-type' => $ct]); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |