Improve some parameter docs

Change-Id: Iade09edaa5d10dfa68defc1735b1fb4f888855e3
This commit is contained in:
Umherirrender 2017-09-09 12:03:21 +02:00
parent af22c0eeb5
commit 73e498d24b
3 changed files with 7 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class SkinVector extends SkinTemplate {
->makeConfig( 'vector' ); ->makeConfig( 'vector' );
} }
/** @inheritdoc */ /** @inheritDoc */
public function getPageClasses( $title ) { public function getPageClasses( $title ) {
$className = parent::getPageClasses( $title ); $className = parent::getPageClasses( $title );
if ( $this->vectorConfig->get( 'VectorExperimentalPrintStyles' ) ) { if ( $this->vectorConfig->get( 'VectorExperimentalPrintStyles' ) ) {
@ -98,6 +98,10 @@ class SkinVector extends SkinTemplate {
/** /**
* Override to pass our Config instance to it * Override to pass our Config instance to it
* @param string $classname
* @param bool|string $repository
* @param bool|string $cache_dir
* @return QuickTemplate
*/ */
public function setupTemplate( $classname, $repository = false, $cache_dir = false ) { public function setupTemplate( $classname, $repository = false, $cache_dir = false ) {
return new $classname( $this->vectorConfig ); return new $classname( $this->vectorConfig );

View File

@ -514,7 +514,7 @@ class VectorTemplate extends BaseTemplate {
} }
/** /**
* @inheritdoc * @inheritDoc
*/ */
public function makeLink( $key, $item, $options = [] ) { public function makeLink( $key, $item, $options = [] ) {
$html = parent::makeLink( $key, $item, $options ); $html = parent::makeLink( $key, $item, $options );
@ -526,7 +526,7 @@ class VectorTemplate extends BaseTemplate {
} }
/** /**
* @inheritdoc * @inheritDoc
*/ */
public function makeListItem( $key, $item, $options = [] ) { public function makeListItem( $key, $item, $options = [] ) {
// For fancy styling of watch/unwatch star // For fancy styling of watch/unwatch star

View File

@ -2,8 +2,6 @@
<ruleset> <ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" /> <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
</rule> </rule>
<file>.</file> <file>.</file>