From 7982cf183ff67ac358f0385cb7a04f75650c2888 Mon Sep 17 00:00:00 2001 From: Stephan Muggli Date: Fri, 23 May 2014 16:00:23 +0200 Subject: [PATCH] Return value directly when using getter It is not necessary to save the value in a variable Change-Id: Ia58c94bb19e22476821451bddc2f66e556b773f6 --- includes/content/TextContent.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/content/TextContent.php b/includes/content/TextContent.php index b772f176d3..c3daf83e36 100644 --- a/includes/content/TextContent.php +++ b/includes/content/TextContent.php @@ -116,9 +116,7 @@ class TextContent extends AbstractContent { * @return string The raw text. */ public function getNativeData() { - $text = $this->mText; - - return $text; + return $this->mText; } /** -- 2.20.1