| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function serialize(PublicKeyInterface $key): string |
||
| 33 | { |
||
| 34 | $publicKeyInfo = $this->derSerializer->serialize($key); |
||
| 35 | |||
| 36 | $content = '-----BEGIN PUBLIC KEY-----'.PHP_EOL; |
||
| 37 | $content .= trim(chunk_split(base64_encode($publicKeyInfo), 64, PHP_EOL)).PHP_EOL; |
||
| 38 | $content .= '-----END PUBLIC KEY-----'; |
||
| 39 | |||
| 40 | return $content; |
||
| 41 | } |
||
| 57 |