Merge pull request #6036 from mallezie/16629
[civicrm-core.git] / CRM / Core / CodeGen / Util / Template.php
index 5f6b2f09b27e9cfa8dc44f7e08c908113f20e62b..2590301c347a96d78a74e78a7ed1914e18622dd8 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Core_CodeGen_Util_Template {
     }
     foreach ($inputs as $infile) {
       // FIXME: does not beautify.  Document.
-      file_put_contents($outpath, $this->smarty->fetch($infile) ."\n", FILE_APPEND);
+      file_put_contents($outpath, $this->smarty->fetch($infile) . "\n", FILE_APPEND);
     }
   }
 
@@ -68,7 +68,8 @@ class CRM_Core_CodeGen_Util_Template {
       $this->beautifier->setOutputFile($outpath);
       $this->beautifier->process();
       $this->beautifier->save();
-    } else {
+    }
+    else {
       file_put_contents($outpath, $renderedContents);
     }
   }
@@ -82,11 +83,12 @@ class CRM_Core_CodeGen_Util_Template {
   }
 
   /**
-   * Clear the smarty cache and assign default values
+   * Clear the smarty cache and assign default values.
    * FIXME: unused cos we no longer do evil singleton magick
    */
   protected function reset() {
     $this->smarty->clear_all_assign();
     $this->smarty->clear_all_cache();
   }
+
 }