mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-23 14:26:47 +00:00
Add missing documentation to class properties
Change-Id: Icdcaa4c34d512c2058fa0d0e349a2cca2ca2e543
This commit is contained in:
parent
3cb17f95da
commit
116ead6d4f
|
@ -2,7 +2,6 @@
|
|||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
|
||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
||||
<exclude name="Squiz.Scope.MethodScope.Missing" />
|
||||
</rule>
|
||||
<file>.</file>
|
||||
|
|
|
@ -47,16 +47,27 @@ require_once "$IP/maintenance/Maintenance.php";
|
|||
* @SuppressWarnings(LongVariable)
|
||||
*/
|
||||
class ReplaceAll extends Maintenance {
|
||||
/** @var User */
|
||||
private $user;
|
||||
/** @var string[] */
|
||||
private $target;
|
||||
/** @var string[] */
|
||||
private $replacement;
|
||||
/** @var int[] */
|
||||
private $namespaces;
|
||||
/** @var string */
|
||||
private $category;
|
||||
/** @var string */
|
||||
private $prefix;
|
||||
/** @var int */
|
||||
private $pageLimit;
|
||||
/** @var bool[] */
|
||||
private $useRegex;
|
||||
/** @var bool */
|
||||
private $defaultContinue;
|
||||
/** @var bool */
|
||||
private $botEdit;
|
||||
/** @var bool */
|
||||
private $rename;
|
||||
|
||||
public function __construct() {
|
||||
|
|
|
@ -43,16 +43,27 @@ use Wikimedia\Rdbms\IConnectionProvider;
|
|||
use Wikimedia\Rdbms\ReadOnlyMode;
|
||||
|
||||
class SpecialReplaceText extends SpecialPage {
|
||||
/** @var string */
|
||||
private $target;
|
||||
/** @var string */
|
||||
private $targetString;
|
||||
/** @var string */
|
||||
private $replacement;
|
||||
/** @var bool */
|
||||
private $use_regex;
|
||||
/** @var string */
|
||||
private $category;
|
||||
/** @var string */
|
||||
private $prefix;
|
||||
/** @var string|int */
|
||||
private $pageLimit;
|
||||
/** @var bool */
|
||||
private $edit_pages;
|
||||
/** @var bool */
|
||||
private $move_pages;
|
||||
/** @var int[] */
|
||||
private $selected_namespaces;
|
||||
/** @var bool */
|
||||
private $botEdit;
|
||||
|
||||
/** @var HookHelper */
|
||||
|
|
Loading…
Reference in a new issue