Use the .= operator to concatenate a var with another
authorDerick Alangi <alangiderick@gmail.com>
Wed, 6 Mar 2019 22:20:56 +0000 (23:20 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Wed, 6 Mar 2019 22:20:56 +0000 (23:20 +0100)
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

includes/skins/QuickTemplate.php

index 1e688eb..5044301 100644 (file)
@@ -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;
                }