| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | protected function checkBadTokenLength(int $tokenLength): void |
||
| 32 | { |
||
| 33 | if ($tokenLength < ExceptionBoundary::TOKEN_LENGTH_MIN || $tokenLength > ExceptionBoundary::TOKEN_LENGTH_MAX) { |
||
| 34 | throw new BadTokenLengthException( |
||
| 35 | \sprintf( |
||
| 36 | "Token length must be between %d and %d", |
||
| 37 | ExceptionBoundary::TOKEN_LENGTH_MIN, |
||
| 38 | ExceptionBoundary::TOKEN_LENGTH_MAX |
||
| 39 | ) |
||
| 44 |