From b5a3d7dd5734d8444d6f8a3fb2a99987cf881c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Mon, 28 Apr 2014 17:28:08 +0200 Subject: [PATCH] fixed phpdoc --- application/core/Plugins/Plugin.php | 5 ++--- application/plugins/Karma.php | 16 +++++++--------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/application/core/Plugins/Plugin.php b/application/core/Plugins/Plugin.php index b3046a2a..960424ca 100644 --- a/application/core/Plugins/Plugin.php +++ b/application/core/Plugins/Plugin.php @@ -18,10 +18,9 @@ interface Plugin { const PLUGIN_INTERFACE = __CLASS__; /** - * Prepares the Plugin + * Prepare the Plugin * * @param ManiaControl $maniaControl - * @return mixed */ public static function prepare(ManiaControl $maniaControl); @@ -34,7 +33,7 @@ interface Plugin { public function load(ManiaControl $maniaControl); /** - * Unload the plugin and its resources + * Unload the plugin and its Resources */ public function unload(); diff --git a/application/plugins/Karma.php b/application/plugins/Karma.php index babbec2f..64392505 100644 --- a/application/plugins/Karma.php +++ b/application/plugins/Karma.php @@ -27,7 +27,7 @@ use ManiaControl\Settings\SettingManager; * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { - /** + /* * Constants */ const ID = 2; @@ -45,7 +45,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { const SETTING_WIDGET_HEIGHT = 'Widget-Size: Height'; const STAT_PLAYER_MAPVOTES = 'Voted Maps'; - /** + /* * Constants MX Karma */ const SETTING_WIDGET_DISPLAY_MX = 'Display MX-Karma in Widget'; @@ -58,12 +58,12 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { const MX_KARMA_SAVEVOTES = 'saveVotes'; const MX_KARMA_GETMAPRATING = 'getMapRating'; - /** - * Private properties + /* + * Private Properties */ /** * - * @var maniaControl $maniaControl + * @var ManiaControl $maniaControl */ private $maniaControl = null; private $updateManialink = false; @@ -74,10 +74,8 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { private $mxKarma = array(); /** - * Prepares the Plugin - * - * @param ManiaControl $maniaControl - * @return mixed + * + * @see \ManiaControl\Plugins\Plugin */ public static function prepare(ManiaControl $maniaControl) { $maniaControl->settingManager->initSetting(get_class(), self::SETTING_MX_KARMA_ACTIVATED, true);