Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | final class Xxh32Hasher implements HasherInterface |
||
32 | { |
||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | * |
||
36 | * 8 hexits = 32bit, which also allows us to forego having to check whether |
||
37 | * it is over PHP_INT_MAX. |
||
38 | * |
||
39 | * The substring is converted to an int since hex strings sometimes get |
||
40 | * treated as ints if all digits are ints and this results in unexpected |
||
41 | * sorting order. |
||
42 | */ |
||
43 | 2 | #[Override] |
|
49 |