Return value directly when using getter
authorStephan Muggli <muggli@hallowelt.biz>
Fri, 23 May 2014 14:00:23 +0000 (16:00 +0200)
committerStephan Muggli <muggli@hallowelt.biz>
Fri, 23 May 2014 14:05:29 +0000 (16:05 +0200)
It is not necessary to save the value in a variable

Change-Id: Ia58c94bb19e22476821451bddc2f66e556b773f6

includes/content/TextContent.php

index b772f17..c3daf83 100644 (file)
@@ -116,9 +116,7 @@ class TextContent extends AbstractContent {
         * @return string The raw text.
         */
        public function getNativeData() {
-               $text = $this->mText;
-
-               return $text;
+               return $this->mText;
        }
 
        /**