From e87a454ba7f0b7a16ada63ff19dbca131559231d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 2 May 2014 15:26:07 +0200 Subject: [PATCH] fixed typos / spelling --- application/core/Callbacks/TimerManager.php | 4 ++-- application/core/Chat.php | 2 +- application/core/Configurators/ScriptSettings.php | 2 +- application/core/Configurators/ServerSettings.php | 2 +- application/core/Formatter.php | 8 ++++---- application/core/ManiaExchange/ManiaExchangeList.php | 2 +- application/core/ManiaExchange/ManiaExchangeManager.php | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/application/core/Callbacks/TimerManager.php b/application/core/Callbacks/TimerManager.php index 273d99f6..6d3ac808 100644 --- a/application/core/Callbacks/TimerManager.php +++ b/application/core/Callbacks/TimerManager.php @@ -39,7 +39,7 @@ class TimerManager { } /** - * Unregisters a Timer Listening + * Unregister a Timer Listening * @param TimerListener $listener * @param $method * @return bool @@ -55,7 +55,7 @@ class TimerManager { } /** - * Registers a Timing Listening, note < 10ms it can get inaccurate + * Register a Timing Listening, note < 10ms it can get inaccurate * * @param TimerListener $listener * @param $method diff --git a/application/core/Chat.php b/application/core/Chat.php index d3791506..56e7685b 100644 --- a/application/core/Chat.php +++ b/application/core/Chat.php @@ -136,7 +136,7 @@ class Chat { * @return bool */ public function sendException(\Exception $exception, $login = null) { - $message = "Exception occured: '{$exception->getMessage()}' ({$exception->getCode()})"; + $message = "Exception occurred: '{$exception->getMessage()}' ({$exception->getCode()})"; $this->maniaControl->errorHandler->triggerDebugNotice($message); $this->sendError($message, $login); } diff --git a/application/core/Configurators/ScriptSettings.php b/application/core/Configurators/ScriptSettings.php index 44bc5e25..c9cc8801 100644 --- a/application/core/Configurators/ScriptSettings.php +++ b/application/core/Configurators/ScriptSettings.php @@ -148,7 +148,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener { try { $this->maniaControl->client->setModeScriptSettings($loadedSettings); } catch(Exception $e) { - trigger_error('Error occured: ' . $e->getMessage()); + trigger_error('Error occurred: ' . $e->getMessage()); return false; } return true; diff --git a/application/core/Configurators/ServerSettings.php b/application/core/Configurators/ServerSettings.php index 7553c6a0..0596070e 100644 --- a/application/core/Configurators/ServerSettings.php +++ b/application/core/Configurators/ServerSettings.php @@ -181,7 +181,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener { $id = 0; foreach($serverSettings as $name => $value) { // Continue on CurrentMaxPlayers... - $pos = strpos($name, "Current"); // TODO maybe current irgentwo anzeigen + $pos = strpos($name, "Current"); // TODO maybe display current somewhere if ($pos !== false) { continue; } diff --git a/application/core/Formatter.php b/application/core/Formatter.php index 39be0779..7c0d1818 100644 --- a/application/core/Formatter.php +++ b/application/core/Formatter.php @@ -35,7 +35,7 @@ abstract class Formatter { } /** - * Formats a Time to H:M:S + * Format a Time to H:M:S * * @param int $seconds * @return string @@ -54,9 +54,9 @@ abstract class Formatter { } /** - * Formatts a Elapset time String (2 days ago...) by a given timestamp + * Format an elapsed time String (2 days ago...) by a given timestamp * - * @param $ptime + * @param int $ptime * @return string */ public static function time_elapsed_string($ptime) { @@ -79,7 +79,7 @@ abstract class Formatter { } /** - * Formats the given Time (Seconds) to hh:mm:ss + * Format the given Time (Seconds) to hh:mm:ss * * @param int $seconds * @return string diff --git a/application/core/ManiaExchange/ManiaExchangeList.php b/application/core/ManiaExchange/ManiaExchangeList.php index 73961fba..771211b8 100644 --- a/application/core/ManiaExchange/ManiaExchangeList.php +++ b/application/core/ManiaExchange/ManiaExchangeList.php @@ -151,7 +151,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener $i = 0; $y = $height / 2 - 16; $pageFrames = array(); - foreach($maps as $map) { //TODO order possabilities + foreach($maps as $map) { //TODO order possibilities /** @var MxMapInfo $map */ if (!isset($pageFrame)) { $pageFrame = new Frame(); diff --git a/application/core/ManiaExchange/ManiaExchangeManager.php b/application/core/ManiaExchange/ManiaExchangeManager.php index d0fbbead..ca850b3b 100644 --- a/application/core/ManiaExchange/ManiaExchangeManager.php +++ b/application/core/ManiaExchange/ManiaExchangeManager.php @@ -118,7 +118,7 @@ class ManiaExchangeManager { */ public function fetchManiaExchangeMapInformations($map = null) { if (!$map) { - //Fetch Informations for whole Maplist + //Fetch Information for whole MapList $maps = $this->maniaControl->mapManager->getMaps(); } else { //Fetch Information for a single map