| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | protected function validateValue(string $value): void |
||
| 25 | { |
||
| 26 | // Note: value must already be sanitized before validating |
||
| 27 | $value = $this->sanitizeValue($value); |
||
| 28 | |||
| 29 | Assert::validHMACOutputLength($value, SchemaViolationException::class); |
||
| 30 | Assert::true( |
||
| 31 | intval($value) % 8 === 0, |
||
| 32 | '%s is not devisible by 8 and therefore not a valid ds:HMACOutputLengthType', |
||
| 33 | ProtocolViolationException::class, |
||
| 34 | ); |
||
| 37 |