Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class ECCPrivateKeyParameter extends JWKParameter |
||
15 | { |
||
16 | use Base64URLValue; |
||
17 | |||
18 | /** |
||
19 | * Constructor. |
||
20 | * |
||
21 | * @param string $key Private key in base64url encoding |
||
22 | */ |
||
23 | 9 | public function __construct(string $key) |
|
27 | 9 | } |
|
28 | |||
29 | /** |
||
30 | * Get the EC private key in octet string representation. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | 6 | public function privateKeyOctets(): string |
|
39 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.