From: Derick Alangi Date: Wed, 6 Mar 2019 22:20:56 +0000 (+0100) Subject: Use the .= operator to concatenate a var with another X-Git-Tag: 1.34.0-rc.0~2624^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=fe1ef3920ce50ece1892b6ec97bb760dec002c71;p=lhc%2Fweb%2Fwiklou.git Use the .= operator to concatenate a var with another Rather than using $var = $var . $foo, to avoid the redundancy, use $var .= $foo which is a valid PHP syntax and popularly used. Change-Id: Idbbdb31a7b5561ed97f9ba0f05f6ac78c9419f82 --- diff --git a/includes/skins/QuickTemplate.php b/includes/skins/QuickTemplate.php index 1e688ebf06..5044301305 100644 --- a/includes/skins/QuickTemplate.php +++ b/includes/skins/QuickTemplate.php @@ -63,7 +63,7 @@ abstract class QuickTemplate { */ public function extend( $name, $value ) { if ( $this->haveData( $name ) ) { - $this->data[$name] = $this->data[$name] . $value; + $this->data[$name] .= $value; } else { $this->data[$name] = $value; }