From 116ead6d4fc493f36b2c05b9b10a3def6f257e94 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Tue, 20 Aug 2024 23:46:31 +0200 Subject: [PATCH] Add missing documentation to class properties Change-Id: Icdcaa4c34d512c2058fa0d0e349a2cca2ca2e543 --- .phpcs.xml | 1 - maintenance/replaceAll.php | 11 +++++++++++ src/SpecialReplaceText.php | 11 +++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.phpcs.xml b/.phpcs.xml index a568c0e6..7fe62754 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -2,7 +2,6 @@ - . diff --git a/maintenance/replaceAll.php b/maintenance/replaceAll.php index 394d8b8c..62925387 100644 --- a/maintenance/replaceAll.php +++ b/maintenance/replaceAll.php @@ -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() { diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index af326413..d49721aa 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -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 */