The variable $argv seems to never exist, and therefore isset should always return false. Did you maybe rename this variable?
This check looks for calls to isset(...) or empty() on variables
that are yet undefined. These calls will always produce the same result and
can be removed.
This is most likely caused by the renaming of a variable or the removal of
a function/method parameter.
Loading history...
24
$percentage = min(100, max(0, $targetCoverage));
25
26
if (!file_exists($inputFile)) {
27
throw new InvalidArgumentException('Invalid input file provided');
28
}
29
30
if (!$percentage) {
31
throw new InvalidArgumentException('An integer checked percentage must be given as second parameter');
32
}
33
34
$xml = new SimpleXMLElement(file_get_contents($inputFile));
This check looks for calls to
isset(...)
orempty()
on variables that are yet undefined. These calls will always produce the same result and can be removed.This is most likely caused by the renaming of a variable or the removal of a function/method parameter.