diff options
author | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-01-16 14:24:44 +0100 |
---|---|---|
committer | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-01-16 14:24:44 +0100 |
commit | 659df897ea828bba243ca9879875870c35e7bb03 (patch) | |
tree | e7ed15e123fc3c70933b356b8ae55d9998a6fb57 /includes/search | |
parent | a9d4d54f74d224cb068510c7715dbfa1ad46123d (diff) | |
download | mediawikicore-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/search')
-rw-r--r-- | includes/search/SearchDatabase.php | 3 | ||||
-rw-r--r-- | includes/search/searchwidgets/FullSearchResultWidget.php | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/includes/search/SearchDatabase.php b/includes/search/SearchDatabase.php index 1efa77623743..c1c56457123e 100644 --- a/includes/search/SearchDatabase.php +++ b/includes/search/SearchDatabase.php @@ -38,9 +38,6 @@ abstract class SearchDatabase extends SearchEngine { protected $searchTerms = []; protected IConnectionProvider $dbProvider; - /** - * @param IConnectionProvider $dbProvider - */ public function __construct( IConnectionProvider $dbProvider ) { $this->dbProvider = $dbProvider; } diff --git a/includes/search/searchwidgets/FullSearchResultWidget.php b/includes/search/searchwidgets/FullSearchResultWidget.php index 79eaa62e03a8..81d83da77622 100644 --- a/includes/search/searchwidgets/FullSearchResultWidget.php +++ b/includes/search/searchwidgets/FullSearchResultWidget.php @@ -431,9 +431,6 @@ class FullSearchResultWidget implements SearchResultWidget { return $img->transform( [ 'width' => $optimalThumbnailWidth ] ); } - /** - * @return string - */ private function generateThumbnailPlaceholderHtml(): string { if ( $this->thumbnailPlaceholderHtml ) { return $this->thumbnailPlaceholderHtml; |