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/Permissions | |
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/Permissions')
-rw-r--r-- | includes/Permissions/RateLimitSubject.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/includes/Permissions/RateLimitSubject.php b/includes/Permissions/RateLimitSubject.php index deadd6751b1e..eafc14c7e66c 100644 --- a/includes/Permissions/RateLimitSubject.php +++ b/includes/Permissions/RateLimitSubject.php @@ -68,9 +68,6 @@ class RateLimitSubject { return $this->user; } - /** - * @return string|null - */ public function getIP(): ?string { return $this->ip; } |