From: stronk7 Details
';
$str .= '';
- $str .= '
File Name ';
+ // start moodle modification: xhtml links
+ $str .= ' ';
// Second row - subheadings
$str .= 'File Name ';
+ // end moodle modification
$str .= 'Lines ';
- $str .= 'Code Coverage ';
+ // start moodle modification: xhtml links
+ $str .= 'Code Coverage ';
+ // end moodle modification
$str .= '';
- $str .= ' ';
$str .= '';
return $str;
@@ -273,8 +279,11 @@
$str .= 'Total ';
- $str .= 'Covered ';
- $str .= 'Missed ';
- $str .= 'Executable ';
+ // start moodle modification: xhtml links
+ $str .= 'Total ';
+ $str .= 'Covered ';
+ $str .= 'Missed ';
+ $str .= 'Executable ';
+ // end moodle modification
$str .= '
';
$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 .= ' ';
+ // 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 9b66de5e11..4e9169e8ea 100644
--- a/lib/spikephpcoverage/src/reporter/html/footer.html
+++ b/lib/spikephpcoverage/src/reporter/html/footer.html
@@ -1,5 +1,7 @@
-
- Line # ';
+ $filestr .= 'Frequency ';
+ $filestr .= 'Source Line
diff --git a/lib/spikephpcoverage/src/reporter/html/header.html b/lib/spikephpcoverage/src/reporter/html/header.html index 41cdf4e17b..248e1fcc7b 100644 --- a/lib/spikephpcoverage/src/reporter/html/header.html +++ b/lib/spikephpcoverage/src/reporter/html/header.html @@ -1,4 +1,5 @@ - + +
@@ -9,8 +10,7 @@
Spike PHPCoverage Details: %%filename%%- |
+ Spike PHPCoverage Details: %%filename%% |
diff --git a/lib/spikephpcoverage/src/reporter/html/indexheader.html b/lib/spikephpcoverage/src/reporter/html/indexheader.html
index cb0702083b..674220b8e8 100644
--- a/lib/spikephpcoverage/src/reporter/html/indexheader.html
+++ b/lib/spikephpcoverage/src/reporter/html/indexheader.html
@@ -1,10 +1,11 @@
-
+
+
|