| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function createSignature(string $data): string |
||
| 35 | { |
||
| 36 | try { |
||
| 37 | return hash_hmac( |
||
| 38 | $this->config->get('redirect.token_signing_algo'), |
||
| 39 | $data, |
||
| 40 | $this->config->get('redirect.token_signing_key'), |
||
| 41 | true |
||
| 42 | ); |
||
| 43 | } catch (ConfigExceptionInterface $e) { |
||
| 44 | throw new SignerException("Failed signing of provided data.", 0, $e); |
||
| 45 | } |
||
| 48 |