mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-13 17:51:35 +00:00
Improve some parameter docs
Change-Id: Iedadec2058cd979c659708876f131328a7614649
This commit is contained in:
parent
b1efb8cf22
commit
82f3350f57
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue