code refactoring

- variable names
- unused parameters
This commit is contained in:
Steffen Schröder committed 2014-06-14 15:52:02 +02:00
1 parent b1663303b0
commit ff0dfc4ae7
31 files changed
+439 -489

No files matched your search

@@ -53,6 +53,18 @@ class DedimaniaData {
$this->serverBuild = $serverVersion->build;
}
/**
* Sort the Records
*/
public function sortRecords() {
usort($this->records, function (RecordData $first, RecordData $second) {
if ($first->best == $second->best) {
return ($first->rank - $second->rank);
}
return ($first->best - $second->best);
});
}
/**
* Build the Data Array
*