coding & phpdoc improvements

This commit is contained in:
Steffen Schröder
2014-05-27 22:32:54 +02:00
parent 0a7bc3b234
commit 9e016cc770
5 changed files with 13 additions and 15 deletions

View File

@ -71,15 +71,15 @@ class ManiaExchangeManager {
/**
* Fetch Map Information from Mania Exchange
*
* @param null $map
* @param mixed $maps
*/
public function fetchManiaExchangeMapInformation($map = null) {
if (!$map) {
public function fetchManiaExchangeMapInformation($maps = null) {
if (!$maps) {
//Fetch Information for whole MapList
$maps = $this->maniaControl->mapManager->getMaps();
} else {
//Fetch Information for a single map
$maps[] = $map;
$maps = (array)$maps;
}
$mysqli = $this->maniaControl->database->mysqli;