Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | trait BadTokenLenghtTrait |
||
19 | { |
||
20 | /** |
||
21 | * Check bad token lenght. |
||
22 | * |
||
23 | * @param int $tokenLenght Token lenght in bytes |
||
24 | * |
||
25 | * @return void |
||
26 | * |
||
27 | * @throws BadTokenLenghtException If $tokenLenght is less than 16 and greater than 128 |
||
28 | */ |
||
29 | 3 | protected function checkBadTokenLenght(int $tokenLenght): void |
|
36 |