1
0
mirror of synced 2025-01-30 03:51:43 +03:00

fixes default sorting direction and change instructions a little

This commit is contained in:
meus 2007-10-14 19:42:45 +00:00
parent 30e41d0e64
commit eb620ffc77
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class DoctrineTest_Coverage
uasort($coveredArray, array($this,"sortArray"));
//and flip if it perhaps?
if (isset($_GET["desc"]) && $_GET["desc"] == "true"){
if (isset($_GET["flip"]) && $_GET["flip"] == "true"){
$coveredArray = array_reverse($coveredArray, true);
}
@ -332,6 +332,6 @@ class DoctrineTest_Coverage
if ($a[$this->sortBy] == $b[$this->sortBy]) {
return 0;
}
return ( $a[$this->sortBy] < $b[$this->sortBy]) ? -1 : 1;
return ( $a[$this->sortBy] < $b[$this->sortBy]) ? 1 : -1;
}
}

View File

@ -39,7 +39,7 @@ $revision = $svn_info[1];
<body>
<h1>Coverage report for Doctrine</h1>
<p>Report generated against revision <?php echo $reporter->getRevision(); ?> current HEAD revision is <?php echo $revision ?>.</p>
<p>Default mode shows results sorted by percentage. This can be changed with GET variables:<br /> <ul><li>order = covered|total|maybe|notcovered|percentage</li><li>desc=true</li></ul></p>
<p>Default mode shows results sorted by percentage with highest first. Customize the ordering with the following GET parameters:<br /> <ul><li>order = covered|total|maybe|notcovered|percentage</li><li>flip=true</li></ul></p>
<table>
<tr>
<th></th>