From 9f53c3325c99c1602f570efdaf0b6e0df2944f95 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sat, 24 Oct 2009 09:12:10 +0000 Subject: convert tabs to spaces git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@407 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/Service/Cache.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/SemanticScuttle/Service/Cache.php') diff --git a/src/SemanticScuttle/Service/Cache.php b/src/SemanticScuttle/Service/Cache.php index 5ca2843..a5794a1 100644 --- a/src/SemanticScuttle/Service/Cache.php +++ b/src/SemanticScuttle/Service/Cache.php @@ -11,18 +11,18 @@ class SemanticScuttle_Service_Cache extends SemanticScuttle_Service * * @return SemanticScuttle_Service */ - public static function getInstance($db) + public static function getInstance($db) { - static $instance; - if (!isset($instance)) { + static $instance; + if (!isset($instance)) { $instance = new self($db); } - return $instance; - } + return $instance; + } protected function __construct() { - $this->basedir = $GLOBALS['dir_cache']; + $this->basedir = $GLOBALS['dir_cache']; } function Start($hash, $time = 300) { @@ -37,7 +37,7 @@ class SemanticScuttle_Service_Cache extends SemanticScuttle_Service } function End($hash) { - $cachefile = $this->basedir .'/'. $hash . $this->fileextension; + $cachefile = $this->basedir .'/'. $hash . $this->fileextension; $handle = fopen($cachefile, 'w'); fwrite($handle, ob_get_contents()); fclose($handle); -- cgit v1.2.3-54-g00ecf