| Conditions | 3 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | protected static function validHMACOutputLength(string $value, string $message = ''): void |
||
| 31 | { |
||
| 32 | parent::regex( |
||
| 33 | $value, |
||
| 34 | self::$HMACOutputLength_regex, |
||
| 35 | $message ?: '%s is not a valid ds:HMACOutputLengthType', |
||
| 36 | InvalidArgumentException::class, |
||
| 37 | ); |
||
| 38 | parent::true( |
||
| 39 | intval($value) % 8 === 0, |
||
| 40 | $message ?: '%s is not devisible by 8 and therefore not a valid ds:HMACOutputLengthType', |
||
| 41 | InvalidArgumentException::class, |
||
| 42 | ); |
||
| 45 |