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