Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class ContentTypeParameter extends JWTParameter |
||
15 | { |
||
16 | use StringParameterValue; |
||
17 | |||
18 | /** |
||
19 | * Content type for the nested JWT. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | const TYPE_JWT = 'JWT'; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * |
||
28 | * @param string $type |
||
29 | */ |
||
30 | 14 | public function __construct(string $type) |
|
35 |
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.