aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content
diff options
context:
space:
mode:
authorthiemowmde <thiemo.kreuz@wikimedia.de>2025-01-16 14:24:44 +0100
committerthiemowmde <thiemo.kreuz@wikimedia.de>2025-01-16 14:24:44 +0100
commit659df897ea828bba243ca9879875870c35e7bb03 (patch)
treee7ed15e123fc3c70933b356b8ae55d9998a6fb57 /includes/content
parenta9d4d54f74d224cb068510c7715dbfa1ad46123d (diff)
downloadmediawikicore-659df897ea828bba243ca9879875870c35e7bb03.tar.gz
mediawikicore-659df897ea828bba243ca9879875870c35e7bb03.zip
Remove trivial 1-line PHPDocs that just repeat the code
I assume these are all either auto-generated by an IDE or the language-level type declarations have been added later. In any case the comments don't add any new information to what the code already says. This is just extra clutter that makes the code harder to read, I would argue. There are many, many more comments like this. In this patch I intentionally focus on the most trivial 1-line comments. Change-Id: Ia294bf4ce0d8a77036842fe25884bc175c2b0e7d
Diffstat (limited to 'includes/content')
-rw-r--r--includes/content/AbstractContent.php3
-rw-r--r--includes/content/Renderer/ContentParseParams.php20
-rw-r--r--includes/content/Transform/ContentTransformer.php3
-rw-r--r--includes/content/Transform/PreSaveTransformParamsValue.php12
-rw-r--r--includes/content/Transform/PreloadTransformParamsValue.php12
-rw-r--r--includes/content/ValidationParams.php8
-rw-r--r--includes/content/WikiTextStructure.php3
7 files changed, 0 insertions, 61 deletions
diff --git a/includes/content/AbstractContent.php b/includes/content/AbstractContent.php
index 2535ba92b89a..fd1ad4c5e58e 100644
--- a/includes/content/AbstractContent.php
+++ b/includes/content/AbstractContent.php
@@ -102,9 +102,6 @@ abstract class AbstractContent implements Content {
return $this->getContentHandlerFactory()->getContentHandler( $this->getModel() );
}
- /**
- * @return IContentHandlerFactory
- */
protected function getContentHandlerFactory(): IContentHandlerFactory {
return MediaWikiServices::getInstance()->getContentHandlerFactory();
}
diff --git a/includes/content/Renderer/ContentParseParams.php b/includes/content/Renderer/ContentParseParams.php
index d274b6f70763..be52f158500b 100644
--- a/includes/content/Renderer/ContentParseParams.php
+++ b/includes/content/Renderer/ContentParseParams.php
@@ -39,42 +39,22 @@ class ContentParseParams {
$this->previousOutput = $previousOutput;
}
- /**
- *
- * @return PageReference
- */
public function getPage(): PageReference {
return $this->page;
}
- /**
- *
- * @return int|null
- */
public function getRevId(): ?int {
return $this->revId;
}
- /**
- *
- * @return ParserOptions
- */
public function getParserOptions(): ParserOptions {
return $this->parserOptions;
}
- /**
- *
- * @return bool
- */
public function getGenerateHtml(): bool {
return $this->generateHtml;
}
- /**
- *
- * @return ?ParserOutput
- */
public function getPreviousOutput(): ?ParserOutput {
return $this->previousOutput;
}
diff --git a/includes/content/Transform/ContentTransformer.php b/includes/content/Transform/ContentTransformer.php
index 26cd1be160b4..f18344e171ab 100644
--- a/includes/content/Transform/ContentTransformer.php
+++ b/includes/content/Transform/ContentTransformer.php
@@ -16,9 +16,6 @@ class ContentTransformer {
/** @var IContentHandlerFactory */
private $contentHandlerFactory;
- /**
- * @param IContentHandlerFactory $contentHandlerFactory
- */
public function __construct( IContentHandlerFactory $contentHandlerFactory ) {
$this->contentHandlerFactory = $contentHandlerFactory;
}
diff --git a/includes/content/Transform/PreSaveTransformParamsValue.php b/includes/content/Transform/PreSaveTransformParamsValue.php
index 91ff5948ada1..e65076560795 100644
--- a/includes/content/Transform/PreSaveTransformParamsValue.php
+++ b/includes/content/Transform/PreSaveTransformParamsValue.php
@@ -25,26 +25,14 @@ class PreSaveTransformParamsValue implements PreSaveTransformParams {
$this->parserOptions = $parserOptions;
}
- /**
- *
- * @return PageReference
- */
public function getPage(): PageReference {
return $this->page;
}
- /**
- *
- * @return UserIdentity
- */
public function getUser(): UserIdentity {
return $this->user;
}
- /**
- *
- * @return ParserOptions
- */
public function getParserOptions(): ParserOptions {
return $this->parserOptions;
}
diff --git a/includes/content/Transform/PreloadTransformParamsValue.php b/includes/content/Transform/PreloadTransformParamsValue.php
index 5c55675d89c3..61751e061cff 100644
--- a/includes/content/Transform/PreloadTransformParamsValue.php
+++ b/includes/content/Transform/PreloadTransformParamsValue.php
@@ -24,26 +24,14 @@ class PreloadTransformParamsValue implements PreloadTransformParams {
$this->params = $params;
}
- /**
- *
- * @return PageReference
- */
public function getPage(): PageReference {
return $this->page;
}
- /**
- *
- * @return array
- */
public function getParams(): array {
return $this->params;
}
- /**
- *
- * @return ParserOptions
- */
public function getParserOptions(): ParserOptions {
return $this->parserOptions;
}
diff --git a/includes/content/ValidationParams.php b/includes/content/ValidationParams.php
index 1db8b02dab89..e1321ac83fa1 100644
--- a/includes/content/ValidationParams.php
+++ b/includes/content/ValidationParams.php
@@ -23,18 +23,10 @@ class ValidationParams {
$this->parentRevId = $parentRevId;
}
- /**
- *
- * @return PageIdentity
- */
public function getPageIdentity(): PageIdentity {
return $this->pageIdentity;
}
- /**
- *
- * @return int
- */
public function getFlags(): int {
return $this->flags;
}
diff --git a/includes/content/WikiTextStructure.php b/includes/content/WikiTextStructure.php
index 09c813667329..36fa812d8b96 100644
--- a/includes/content/WikiTextStructure.php
+++ b/includes/content/WikiTextStructure.php
@@ -57,9 +57,6 @@ class WikiTextStructure {
'.searchaux',
];
- /**
- * @param ParserOutput $parserOutput
- */
public function __construct( ParserOutput $parserOutput ) {
$this->parserOutput = $parserOutput;
}