GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#42)
by
unknown
01:59
created

Functions.php ➔ functionB()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
function functionA($argumentVar) {
5
    $localVarA = 3;
6
    return $argumentVar + $localVarA;
7
}
8
9
function functionB() {
10
    $localVarB = 5;
11
    return functionB($localVarB);
0 ignored issues
show
Unused Code introduced by
The call to functionB() has too many arguments starting with $localVarB.

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.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
12
}
13
14
function functionC(?int $a): ?string {
15
    return $a === null ? null : "Output: " . $a;
16
}
17
18
$localVarMainA = "local value";
19
$localVarMainB = functionB();
20
$localVarMainA = functionA($localVarMainA);
21
functionC();
0 ignored issues
show
Bug introduced by
The call to functionC() misses a required argument $a.

This check looks for function calls that miss required arguments.

Loading history...
Unused Code introduced by
The call to the function functionC() seems unnecessary as the function has no side-effects.
Loading history...