This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
50
$reader->name === "line" &&
51
$reader->getAttribute("type") == "stmt"
52
)) {
53
$this->coveredLines
54
[$currentFile]
55
[$reader->getAttribute('num')]
56
= (int) $reader->getAttribute("count");
57
}
58
}
59
60
return $this->coveredLines;
61
}
62
63
/**
64
* {@inheritdoc}
65
*/
66
public function isValidLine($file, $line)
67
{
68
if (!isset($this->coveredLines[$file][$line])) {
69
return null;
70
}
71
72
return $this->coveredLines[$file][$line] > 0;
73
}
74
75
/**
76
* {@inheritdoc}
77
*/
78
public function handleNotFoundFile()
79
{
80
return null;
81
}
82
83
/**
84
* {@inheritdoc}
85
*/
86
public static function getDescription()
87
{
88
return 'Parses text output in clover (xml) format designed for ' .
89
'phpunit but any tool which outputs in this format should work';
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.