diff options
author | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-01-17 09:36:46 +0100 |
---|---|---|
committer | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-01-17 15:35:53 +0100 |
commit | cd7ceb37b8d6830471d4db829f7a2cf0fa025cc5 (patch) | |
tree | 9e5a50339b49d9bdf9dd21146cebba1d60222bc2 /includes/site | |
parent | 6add3e5036c214eb81bb360890b6212b961c4577 (diff) | |
download | mediawikicore-cd7ceb37b8d6830471d4db829f7a2cf0fa025cc5.tar.gz mediawikicore-cd7ceb37b8d6830471d4db829f7a2cf0fa025cc5.zip |
Remove 2-line PHPDocs that just repeat the types from the code
Same as Ia294bf4 did for 1-line comments. This patch removes slightly
more complex 2-line PHPDoc comments that don't add any new information
to the code, but literally repeat what the code already says.
They say "don't document the code, code the documentation", and we
are doing this more and more. We just tend to forget to remove the
obsolete comments.
Note I'm also removing a line of text in a few cases when it's very
short and literally says the same as the method name. Again, such
comments add zero new information.
Change-Id: I01535404bab458c6c47e48e5456403b7a64198ed
Diffstat (limited to 'includes/site')
-rw-r--r-- | includes/site/CachingSiteStore.php | 4 | ||||
-rw-r--r-- | includes/site/SiteExporter.php | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/includes/site/CachingSiteStore.php b/includes/site/CachingSiteStore.php index c7fb4dc1ddd2..398e72b77ac0 100644 --- a/includes/site/CachingSiteStore.php +++ b/includes/site/CachingSiteStore.php @@ -41,10 +41,6 @@ class CachingSiteStore implements SiteStore { /** @var SiteList|null */ private $sites = null; - /** - * @param SiteStore $siteStore - * @param BagOStuff $cache - */ public function __construct( SiteStore $siteStore, BagOStuff $cache diff --git a/includes/site/SiteExporter.php b/includes/site/SiteExporter.php index 727bd28216b9..6f2a5c8d20e0 100644 --- a/includes/site/SiteExporter.php +++ b/includes/site/SiteExporter.php @@ -75,8 +75,6 @@ class SiteExporter { /** * Writes a <site> tag representing the given Site object. - * - * @param Site $site */ private function exportSite( Site $site ) { if ( $site->getType() !== Site::TYPE_UNKNOWN ) { |