prettified code

This commit is contained in:
kremsy 2017-05-19 23:55:45 +02:00
parent a6831be5be
commit 468f937b2e
2 changed files with 20 additions and 22 deletions

View File

@ -14,8 +14,6 @@ use ManiaControl\Callbacks\Callbacks;
use ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure; use ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure;
use ManiaControl\Callbacks\TimerListener; use ManiaControl\Callbacks\TimerListener;
use ManiaControl\Commands\CommandListener; use ManiaControl\Commands\CommandListener;
use ManiaControl\Files\AsyncHttpRequest;
use ManiaControl\Logger;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Manialinks\ManialinkManager; use ManiaControl\Manialinks\ManialinkManager;
use ManiaControl\Players\Player; use ManiaControl\Players\Player;
@ -526,7 +524,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
$validationReplay = $this->maniaControl->getServer()->getValidationReplay($record->login); $validationReplay = $this->maniaControl->getServer()->getValidationReplay($record->login);
if ($validationReplay) { if ($validationReplay) {
$record->vReplay = $validationReplay; $record->vReplay = $validationReplay;
}else{ } else {
return; return;
} }

View File

@ -10,8 +10,8 @@ use ManiaControl\Players\Player;
/** /**
* ManiaControl Dedimania Webhandler Class for Dedimania Plugin * ManiaControl Dedimania Webhandler Class for Dedimania Plugin
*
* Notice its not completely finished yet * Notice its not completely finished yet
*
* @author ManiaControl Team <mail@maniacontrol.com> * @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014-2017 ManiaControl Team * @copyright 2014-2017 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
@ -279,7 +279,7 @@ class DedimaniaWebHandler {
// Called method response // Called method response
if (!$methodResponse[0]) { if (!$methodResponse[0]) {
Logger::logError("Records Plugin: Submitting dedimania records failed."); Logger::logError("Records Plugin: Submitting dedimania records failed.");
}else{ } else {
Logger::log("Dedimania Times succesfully submitted"); Logger::log("Dedimania Times succesfully submitted");
} }