From cd7ceb37b8d6830471d4db829f7a2cf0fa025cc5 Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Fri, 17 Jan 2025 09:36:46 +0100 Subject: 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 --- includes/Permissions/RateLimitSubject.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'includes/Permissions') 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; } -- cgit v1.2.3