| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function createJWKSet(array $values = []) |
||
| 26 | { |
||
| 27 | $key_set = new JWKSet(); |
||
| 28 | if (array_key_exists('keys', $values)) { |
||
| 29 | foreach ($values['keys'] as $value) { |
||
| 30 | $key = $this->getJWKManager()->createJWK($value); |
||
| 31 | $key_set = $key_set->addKey($key); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | return $key_set; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |