dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d59d61
)
Return value directly when using getter
author
Stephan Muggli
<muggli@hallowelt.biz>
Fri, 23 May 2014 14:00:23 +0000
(16:00 +0200)
committer
Stephan 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
patch
|
blob
|
history
diff --git
a/includes/content/TextContent.php
b/includes/content/TextContent.php
index
b772f17
..
c3daf83
100644
(file)
--- 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;
}
/**