';
$str .= 'Summary';
$str .= '';
+ // start moodle modification: xhtml
+ $str .= '';
$str .= '| Overall Code Coverage | ';
- $str .= '' . $this->getGrandCodeCoveragePercentage() . '% | ';
+ $str .= '' . $this->getGrandCodeCoveragePercentage() . '% | ';
+ // end moodle modification
$str .= ' ';
@@ -569,9 +578,11 @@
protected function writeFileTableHead() {
$filestr = "";
- $filestr .= '| Line # | ';
- $filestr .= 'Frequency | ';
- $filestr .= 'Source Line | ';
+ // start moodle modification: xhtml + column widths
+ $filestr .= ' | Line # | ';
+ $filestr .= 'Frequency | ';
+ $filestr .= 'Source Line | ';
+ // end moodle modification
return $filestr;
}
@@ -631,6 +642,11 @@
* @access protected
*/
protected function preserveSpacing($string) {
+ // start moodle modification: xhtml
+ if (empty($string)) {
+ return ' ';
+ }
+ // end moodle modification
$string = htmlspecialchars($string);
$string = str_replace(" ", " ", $string);
$string = str_replace("\t", " ", $string);
diff --git a/lib/spikephpcoverage/src/reporter/html/footer.html b/lib/spikephpcoverage/src/reporter/html/footer.html
index 9b66de5e118..4e9169e8ea0 100644
--- a/lib/spikephpcoverage/src/reporter/html/footer.html
+++ b/lib/spikephpcoverage/src/reporter/html/footer.html
@@ -1,5 +1,7 @@
-
-
+
+ |
+
+