| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 25 | public function getKeys()  | 
            ||
| 26 |     { | 
            ||
| 27 | $content = json_decode($this->getContent(), true);  | 
            ||
| 28 | Assertion::isArray($content, 'Invalid content.');  | 
            ||
| 29 | $jwkset = new JWKSet();  | 
            ||
| 30 |         foreach ($content as $kid => $cert) { | 
            ||
| 31 | $jwk = KeyConverter::loadKeyFromCertificate($cert);  | 
            ||
| 32 | Assertion::notEmpty($jwk, 'Invalid content.');  | 
            ||
| 33 |             if (is_string($kid)) { | 
            ||
| 34 | $jwk['kid'] = $kid;  | 
            ||
| 35 | }  | 
            ||
| 36 | $jwkset->addKey(new JWK($jwk));  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | return $jwkset->getKeys();  | 
            ||
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 |