coding & phpdoc improvements
This commit is contained in:
@ -113,13 +113,12 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb
|
||||
$requester = $nextQueued[0];
|
||||
/** @var Map $map */
|
||||
$map = $nextQueued[1];
|
||||
$this->maniaControl->chat->sendInformation("Next map is $<" . $map->name . "$> from $<" . $map->authorNick . "$> requested by $<" . $requester->nickname . "$>.", $player);
|
||||
$this->maniaControl->chat->sendInformation("Next Map is $<{$map->nam}$> from $<{$map->authorNick}$> requested by $<{$requester->nickname}$>.", $player);
|
||||
} else {
|
||||
|
||||
$mapIndex = $this->maniaControl->client->getNextMapIndex();
|
||||
$maps = $this->maniaControl->mapManager->getMaps();
|
||||
$map = $maps[$mapIndex];
|
||||
$this->maniaControl->chat->sendInformation("Next map is $<" . $map->name . "$> from $<" . $map->authorNick . "$>.", $player->login);
|
||||
$this->maniaControl->chat->sendInformation("Next Map is $<{$map->name}$> from $<{$map->authorNick}$>.", $player);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
* Display a MapList on the Screen
|
||||
*
|
||||
* @param Player $player
|
||||
* @param array $mapList
|
||||
* @param Map[] $mapList
|
||||
* @param int $pageIndex
|
||||
*/
|
||||
public function showMapList(Player $player, $mapList = null, $pageIndex = -1) {
|
||||
|
@ -581,8 +581,7 @@ class MapManager implements CallbackListener {
|
||||
* Returns the MapIndex of a given map
|
||||
*
|
||||
* @param Map $map
|
||||
* @internal param $uid
|
||||
* @return mixed
|
||||
* @return int
|
||||
*/
|
||||
public function getMapIndex(Map $map) {
|
||||
$maps = $this->getMaps();
|
||||
@ -594,7 +593,7 @@ class MapManager implements CallbackListener {
|
||||
*
|
||||
* @param int $offset
|
||||
* @param int $length
|
||||
* @return array
|
||||
* @return Map[]
|
||||
*/
|
||||
public function getMaps($offset = null, $length = null) {
|
||||
if ($offset === null) {
|
||||
|
Reference in New Issue
Block a user