From f61d9ca408d7ea076abbf996dd0f9093ad34ca2d Mon Sep 17 00:00:00 2001 From: norahmollo Date: Wed, 17 Oct 2012 19:02:58 +0000 Subject: [PATCH] CODE STYLE Formating gulliver/system/class.helper.php Change format files in gulliver/system/class.helper.php --- gulliver/system/class.helper.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gulliver/system/class.helper.php b/gulliver/system/class.helper.php index 8bf2fca9f..b61b2f157 100755 --- a/gulliver/system/class.helper.php +++ b/gulliver/system/class.helper.php @@ -1,7 +1,7 @@ @@ -37,7 +37,7 @@ class Helper{ public $minified; public $gzipModuleEnabled; public $contentType; - + function __construct(){ $this->content = ''; $this->gzipEnabled = true; @@ -45,20 +45,20 @@ class Helper{ $this->gzipModuleEnabled = false; $this->contentType = 'text/html'; } - + function addFile($file){ if( is_file($file) ) $this->content .= file_get_contents($file); } - + function addContent($content){ $this->content = $content; } - + function setContentType($ctype){ $this->contentType = $ctype; } - + function init(){ header("Content-type: {$this->contentType}"); header('Pragma: cache'); @@ -67,10 +67,10 @@ class Helper{ if( $this->gzipEnabled && extension_loaded('zlib') ){ $this->gzipModuleEnabled = true; ob_start('ob_gzhandler'); - } else + } else ob_start(); } - + function minify() { if ($this->contentType != 'text/css') { G::LoadThirdParty('jsmin', 'jsmin'); @@ -84,14 +84,14 @@ class Helper{ print($this->content); ob_end_flush(); } - + function serve($type=null){ if( isset($type) ) $this->setContentType($ctype); $this->init(); $this->flush(); } -} +} /* function minify($buffer) { return G::removeComments($buffer);