fixed typos / spelling

This commit is contained in:
Steffen Schröder 2014-05-02 15:26:07 +02:00
parent 36b76da5c9
commit e87a454ba7
7 changed files with 11 additions and 11 deletions

View File

@ -39,7 +39,7 @@ class TimerManager {
} }
/** /**
* Unregisters a Timer Listening * Unregister a Timer Listening
* @param TimerListener $listener * @param TimerListener $listener
* @param $method * @param $method
* @return bool * @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 TimerListener $listener
* @param $method * @param $method

View File

@ -136,7 +136,7 @@ class Chat {
* @return bool * @return bool
*/ */
public function sendException(\Exception $exception, $login = null) { 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->maniaControl->errorHandler->triggerDebugNotice($message);
$this->sendError($message, $login); $this->sendError($message, $login);
} }

View File

@ -148,7 +148,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
try { try {
$this->maniaControl->client->setModeScriptSettings($loadedSettings); $this->maniaControl->client->setModeScriptSettings($loadedSettings);
} catch(Exception $e) { } catch(Exception $e) {
trigger_error('Error occured: ' . $e->getMessage()); trigger_error('Error occurred: ' . $e->getMessage());
return false; return false;
} }
return true; return true;

View File

@ -181,7 +181,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
$id = 0; $id = 0;
foreach($serverSettings as $name => $value) { foreach($serverSettings as $name => $value) {
// Continue on CurrentMaxPlayers... // Continue on CurrentMaxPlayers...
$pos = strpos($name, "Current"); // TODO maybe current irgentwo anzeigen $pos = strpos($name, "Current"); // TODO maybe display current somewhere
if ($pos !== false) { if ($pos !== false) {
continue; continue;
} }

View File

@ -35,7 +35,7 @@ abstract class Formatter {
} }
/** /**
* Formats a Time to H:M:S * Format a Time to H:M:S
* *
* @param int $seconds * @param int $seconds
* @return string * @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 * @return string
*/ */
public static function time_elapsed_string($ptime) { 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 * @param int $seconds
* @return string * @return string

View File

@ -151,7 +151,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$i = 0; $i = 0;
$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 possibilities
/** @var MxMapInfo $map */ /** @var MxMapInfo $map */
if (!isset($pageFrame)) { if (!isset($pageFrame)) {
$pageFrame = new Frame(); $pageFrame = new Frame();

View File

@ -118,7 +118,7 @@ class ManiaExchangeManager {
*/ */
public function fetchManiaExchangeMapInformations($map = null) { public function fetchManiaExchangeMapInformations($map = null) {
if (!$map) { if (!$map) {
//Fetch Informations for whole Maplist //Fetch Information for whole MapList
$maps = $this->maniaControl->mapManager->getMaps(); $maps = $this->maniaControl->mapManager->getMaps();
} else { } else {
//Fetch Information for a single map //Fetch Information for a single map