jenkins-bot has submitted this change and it was merged.

Change subject: Return value directly when using getter
......................................................................


Return value directly when using getter

It is not necessary to save the value in a variable

Change-Id: Ia58c94bb19e22476821451bddc2f66e556b773f6
---
M includes/content/TextContent.php
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  Daniel Kinzler: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/content/TextContent.php b/includes/content/TextContent.php
index b772f17..c3daf83 100644
--- a/includes/content/TextContent.php
+++ b/includes/content/TextContent.php
@@ -116,9 +116,7 @@
         * @return string The raw text.
         */
        public function getNativeData() {
-               $text = $this->mText;
-
-               return $text;
+               return $this->mText;
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/135025
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia58c94bb19e22476821451bddc2f66e556b773f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Smuggli <mug...@hallowelt.biz>
Gerrit-Reviewer: Daniel Kinzler <daniel.kinz...@wikimedia.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to