From: Stephan Muggli Date: Fri, 23 May 2014 14:00:23 +0000 (+0200) Subject: Return value directly when using getter X-Git-Tag: 1.31.0-rc.0~15586^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=7982cf183ff67ac358f0385cb7a04f75650c2888;p=lhc%2Fweb%2Fwiklou.git Return value directly when using getter It is not necessary to save the value in a variable Change-Id: Ia58c94bb19e22476821451bddc2f66e556b773f6 --- 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; } /**