aboutsummaryrefslogtreecommitdiffstats
path: root/includes/page/PageStoreRecord.php
diff options
context:
space:
mode:
authorthiemowmde <thiemo.kreuz@wikimedia.de>2025-01-17 09:36:46 +0100
committerthiemowmde <thiemo.kreuz@wikimedia.de>2025-01-17 15:35:53 +0100
commitcd7ceb37b8d6830471d4db829f7a2cf0fa025cc5 (patch)
tree9e5a50339b49d9bdf9dd21146cebba1d60222bc2 /includes/page/PageStoreRecord.php
parent6add3e5036c214eb81bb360890b6212b961c4577 (diff)
downloadmediawikicore-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/page/PageStoreRecord.php')
-rw-r--r--includes/page/PageStoreRecord.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/includes/page/PageStoreRecord.php b/includes/page/PageStoreRecord.php
index 1d1bcda83855..b5a7556466f4 100644
--- a/includes/page/PageStoreRecord.php
+++ b/includes/page/PageStoreRecord.php
@@ -79,8 +79,6 @@ class PageStoreRecord extends PageIdentityValue implements ExistingPageRecord {
/**
* False if the page has had more than one edit.
- *
- * @return bool
*/
public function isNew(): bool {
return (bool)$this->row->page_is_new;
@@ -88,8 +86,6 @@ class PageStoreRecord extends PageIdentityValue implements ExistingPageRecord {
/**
* True if the page is a redirect.
- *
- * @return bool
*/
public function isRedirect(): bool {
return (bool)$this->row->page_is_redirect;
@@ -109,8 +105,6 @@ class PageStoreRecord extends PageIdentityValue implements ExistingPageRecord {
/**
* Timestamp at which the page was last rerendered.
- *
- * @return string
*/
public function getTouched(): string {
return MWTimestamp::convert( TS_MW, $this->row->page_touched );
@@ -118,8 +112,6 @@ class PageStoreRecord extends PageIdentityValue implements ExistingPageRecord {
/**
* Language in which the page is written.
- *
- * @return ?string
*/
public function getLanguage(): ?string {
return $this->getField( 'page_lang' );