mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-15 03:35:29 +00:00
Remove comments that literally repeat the code
Change-Id: I6508745504af15a233ed4f6981c5114b72f1805a
This commit is contained in:
parent
6633e446d9
commit
6d7d686441
|
@ -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();
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue