summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/Service/Cache.php
diff options
context:
space:
mode:
authorGravatar cweiske2009-10-24 09:12:10 +0000
committerGravatar cweiske2009-10-24 09:12:10 +0000
commit9f53c3325c99c1602f570efdaf0b6e0df2944f95 (patch)
tree89aa64a2c4538ffda43d1f2c7c87f6e814b4d623 /src/SemanticScuttle/Service/Cache.php
parent5d11ae2fd5a88b5605aa70167516a571822f0e06 (diff)
downloadscuttle-9f53c3325c99c1602f570efdaf0b6e0df2944f95.tar.gz
scuttle-9f53c3325c99c1602f570efdaf0b6e0df2944f95.zip
convert tabs to spaces
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@407 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service/Cache.php')
-rw-r--r--src/SemanticScuttle/Service/Cache.php14
1 files changed, 7 insertions, 7 deletions
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);