From 990b126e4f12561c0fdb4eaf1bd418797993995f Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 7 Feb 2014 14:17:03 +0100 Subject: [PATCH] small fix --- application/core/Files/AsynchronousFileReader.php | 4 ++++ application/core/ManiaExchange/ManiaExchangeList.php | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/application/core/Files/AsynchronousFileReader.php b/application/core/Files/AsynchronousFileReader.php index 6168c632..449a5e98 100644 --- a/application/core/Files/AsynchronousFileReader.php +++ b/application/core/Files/AsynchronousFileReader.php @@ -25,6 +25,10 @@ class AsynchronousFileReader implements TimerListener { $this->maniaControl = $maniaControl; } + /** + * Appends the Data + * @throws \Exception + */ public function appendData() { foreach($this->sockets as $key => &$socket) { /** @var SocketStructure $socket */ diff --git a/application/core/ManiaExchange/ManiaExchangeList.php b/application/core/ManiaExchange/ManiaExchangeList.php index bcd9d0f8..83477bc4 100644 --- a/application/core/ManiaExchange/ManiaExchangeList.php +++ b/application/core/ManiaExchange/ManiaExchangeList.php @@ -111,8 +111,9 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener /** * Display the Mania Exchange List * - * @param array $chatCallback + * @param $maps * @param Player $player + * @internal param array $chatCallback */ private function showManiaExchangeList($maps, Player $player) { // Start offsets @@ -146,6 +147,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener $y = $height / 2 - 16; $pageFrames = array(); foreach($maps as $map) { //TODO order possabilities + /** @var MxMapInfo $map */ if (!isset($pageFrame)) { $pageFrame = new Frame(); $frame->add($pageFrame);