Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait HMACOutputLengthTrait |
||
16 | { |
||
17 | /** |
||
18 | * The HMAC algorithm (RFC2104 [HMAC]) takes the output (truncation) length in bits as a parameter; |
||
19 | * this specification REQUIRES that the truncation length be a multiple of 8 (i.e. fall on a byte boundary) |
||
20 | * because Base64 encoding operates on full bytes |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private static string $HMACOutputLength_regex = '/^([1-9]\d*)$/D'; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @param string $value |
||
29 | * @param string $message |
||
30 | */ |
||
31 | protected static function validHMACOutputLength(string $value, string $message = ''): void |
||
54 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths