Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function generateToken(): string |
||
43 | { |
||
44 | // Generate a URI safe base64 encoded string that does not contain "+", |
||
45 | // "/" or "=" which need to be URL encoded and make URLs unnecessarily |
||
46 | // longer. |
||
47 | /** |
||
48 | * @template max |
||
49 | * @phpstan-var int<1, max> $length |
||
50 | */ |
||
51 | $length = intdiv($this->entropy, 8); |
||
52 | $bytes = random_bytes($length); |
||
53 | |||
54 | return rtrim(strtr(base64_encode($bytes), '+/', '-_'), '='); |
||
55 | } |
||
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