Improve some parameter docs

Change-Id: Iedadec2058cd979c659708876f131328a7614649
This commit is contained in:
Umherirrender 2018-01-07 15:26:51 +01:00
parent b1efb8cf22
commit 82f3350f57
2 changed files with 8 additions and 3 deletions

View file

@ -1,8 +1,7 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
@ -13,5 +12,4 @@
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8" />
<exclude-pattern>vendor</exclude-pattern>
</ruleset>

View file

@ -383,6 +383,9 @@ class SpecialReplaceText extends SpecialPage {
/**
* Copied almost exactly from MediaWiki's SpecialSearch class, i.e.
* the search page
* @param string[] $namespaces
* @param int $rowsPerTable
* @return string HTML
*/
function namespaceTables( $namespaces, $rowsPerTable = 3 ) {
global $wgContLang;
@ -529,6 +532,10 @@ class SpecialReplaceText extends SpecialPage {
* Extract context and highlights search text
*
* @todo The bolding needs to be fixed for regular expressions.
* @param string $text
* @param string $target
* @param bool $use_regex
* @return string
*/
function extractContext( $text, $target, $use_regex = false ) {
global $wgLang;