Added "{}" around all double quoted variables, for readability's sake;

Performance improvement in Serializer - wrap length is calculated once during the text portion only. Tags reuse the result. Also no "prefix" adding in tags - the name is simply added before wrapping.
This commit is contained in:
Vasil Rangelov
2013-05-27 02:04:23 +03:00
parent 4a7affe15b
commit ac6e37af97
2 changed files with 10 additions and 23 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ class DocBlock implements \Reflector
$long = $this->getLongDescription()->getContents();
if ($long) {
return $short . "\n\n" . $long;
return "{$short}\n\n{$long}";
} else {
return $short;
}