Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | final class UriSafeTokenGenerator implements TokenGeneratorInterface |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Generates URI-safe CSRF tokens. |
||
28 | * |
||
29 | * @param int $entropy The amount of entropy collected for each token (in bits) |
||
30 | */ |
||
31 | public function __construct(private readonly int $entropy = 256) |
||
35 | } |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @inheritDoc |
||
40 | * @throws RandomException |
||
41 | */ |
||
42 | public function generateToken(): string |
||
57 |
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