From 6d7d686441a38a78a97edd42b88bd28d8e5430db Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Mon, 10 Jan 2022 10:44:08 +0100 Subject: [PATCH] Remove comments that literally repeat the code Change-Id: I6508745504af15a233ed4f6981c5114b72f1805a --- includes/engines/LuaCommon/LibraryBase.php | 16 +++------------- includes/engines/LuaCommon/LuaInterpreter.php | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/includes/engines/LuaCommon/LibraryBase.php b/includes/engines/LuaCommon/LibraryBase.php index 3bb0b5aa..16ccfde3 100644 --- a/includes/engines/LuaCommon/LibraryBase.php +++ b/includes/engines/LuaCommon/LibraryBase.php @@ -49,8 +49,6 @@ abstract class Scribunto_LuaLibraryBase { abstract public function register(); /** - * Get the engine - * * @return Scribunto_LuaEngine engine */ protected function getEngine() { @@ -58,8 +56,6 @@ abstract class Scribunto_LuaLibraryBase { } /** - * Get the interpreter - * * @return Scribunto_LuaInterpreter interpreter */ protected function getInterpreter() { @@ -67,27 +63,21 @@ abstract class Scribunto_LuaLibraryBase { } /** - * Get the parser - * - * @return Parser parser + * @return Parser */ protected function getParser() { return $this->engine->getParser(); } /** - * Get the title - * - * @return Title title + * @return Title */ protected function getTitle() { return $this->getEngine()->getTitle(); } /** - * Get the parser options - * - * @return ParserOptions parser options + * @return ParserOptions */ protected function getParserOptions() { return $this->engine->getParser()->getOptions(); diff --git a/includes/engines/LuaCommon/LuaInterpreter.php b/includes/engines/LuaCommon/LuaInterpreter.php index 12ade9e5..4d21c109 100644 --- a/includes/engines/LuaCommon/LuaInterpreter.php +++ b/includes/engines/LuaCommon/LuaInterpreter.php @@ -6,7 +6,7 @@ abstract class Scribunto_LuaInterpreter { * If there is a pass error, a Scribunto_LuaError will be thrown. * * @param string $text The Lua source code - * @param string $chunkName The chunk name + * @param string $chunkName * @return mixed */ abstract public function loadString( $text, $chunkName );