small fix

This commit is contained in:
kremsy 2014-02-07 14:17:03 +01:00 committed by Steffen Schröder
parent dfb9debdd2
commit 990b126e4f
2 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,10 @@ class AsynchronousFileReader implements TimerListener {
$this->maniaControl = $maniaControl; $this->maniaControl = $maniaControl;
} }
/**
* Appends the Data
* @throws \Exception
*/
public function appendData() { public function appendData() {
foreach($this->sockets as $key => &$socket) { foreach($this->sockets as $key => &$socket) {
/** @var SocketStructure $socket */ /** @var SocketStructure $socket */

View File

@ -111,8 +111,9 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
/** /**
* Display the Mania Exchange List * Display the Mania Exchange List
* *
* @param array $chatCallback * @param $maps
* @param Player $player * @param Player $player
* @internal param array $chatCallback
*/ */
private function showManiaExchangeList($maps, Player $player) { private function showManiaExchangeList($maps, Player $player) {
// Start offsets // Start offsets
@ -146,6 +147,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$y = $height / 2 - 16; $y = $height / 2 - 16;
$pageFrames = array(); $pageFrames = array();
foreach($maps as $map) { //TODO order possabilities foreach($maps as $map) { //TODO order possabilities
/** @var MxMapInfo $map */
if (!isset($pageFrame)) { if (!isset($pageFrame)) {
$pageFrame = new Frame(); $pageFrame = new Frame();
$frame->add($pageFrame); $frame->add($pageFrame);