diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 15:22:01 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 15:22:01 +0200 |
commit | 3829460ab8cbb6de65c53583a20fd04cbe7927dd (patch) | |
tree | 4dc24845a5eb31b17510a621e14c15b51f16bf7b /lib/cache | |
parent | 785aa751bb5f9a4bcdd677b96207550482e17d3c (diff) | |
download | nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip |
adding space between) and {
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/apc.php | 2 | ||||
-rw-r--r-- | lib/cache/broker.php | 2 | ||||
-rw-r--r-- | lib/cache/file.php | 12 | ||||
-rw-r--r-- | lib/cache/fileglobal.php | 10 | ||||
-rw-r--r-- | lib/cache/xcache.php | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/lib/cache/apc.php b/lib/cache/apc.php index c192fe2f196..6dda0a0ff8c 100644 --- a/lib/cache/apc.php +++ b/lib/cache/apc.php @@ -43,7 +43,7 @@ class OC_Cache_APC { return apc_delete($this->getNamespace().$key); } - public function clear($prefix=''){ + public function clear($prefix='') { $ns = $this->getNamespace().$prefix; $cache = apc_cache_info('user'); foreach($cache['cache_list'] as $entry) { diff --git a/lib/cache/broker.php b/lib/cache/broker.php index c2aceabaf53..a161dbfa3bb 100644 --- a/lib/cache/broker.php +++ b/lib/cache/broker.php @@ -46,7 +46,7 @@ class OC_Cache_Broker { return $this->slow_cache->remove($key); } - public function clear($prefix=''){ + public function clear($prefix='') { $this->fast_cache->clear($prefix); $this->slow_cache->clear($prefix); } diff --git a/lib/cache/file.php b/lib/cache/file.php index b9073dee09a..a4f83f76c94 100644 --- a/lib/cache/file.php +++ b/lib/cache/file.php @@ -13,7 +13,7 @@ class OC_Cache_File{ if (isset($this->storage)) { return $this->storage; } - if(OC_User::isLoggedIn()){ + if(OC_User::isLoggedIn()) { $subdir = 'cache'; $view = new OC_FilesystemView('/'.OC_User::getUser()); if(!$view->file_exists($subdir)) { @@ -61,18 +61,18 @@ class OC_Cache_File{ public function remove($key) { $storage = $this->getStorage(); - if(!$storage){ + if(!$storage) { return false; } return $storage->unlink($key); } - public function clear($prefix=''){ + public function clear($prefix='') { $storage = $this->getStorage(); - if($storage and $storage->is_dir('/')){ + if($storage and $storage->is_dir('/')) { $dh=$storage->opendir('/'); - while($file=readdir($dh)){ - if($file!='.' and $file!='..' and ($prefix==='' || strpos($file, $prefix) === 0)){ + while($file=readdir($dh)) { + if($file!='.' and $file!='..' and ($prefix==='' || strpos($file, $prefix) === 0)) { $storage->unlink('/'.$file); } } diff --git a/lib/cache/fileglobal.php b/lib/cache/fileglobal.php index e551ad472a2..6d01964e185 100644 --- a/lib/cache/fileglobal.php +++ b/lib/cache/fileglobal.php @@ -57,20 +57,20 @@ class OC_Cache_FileGlobal{ public function remove($key) { $cache_dir = self::getCacheDir(); - if(!$cache_dir){ + if(!$cache_dir) { return false; } $key = $this->fixKey($key); return unlink($cache_dir.$key); } - public function clear($prefix=''){ + public function clear($prefix='') { $cache_dir = self::getCacheDir(); $prefix = $this->fixKey($prefix); - if($cache_dir and is_dir($cache_dir)){ + if($cache_dir and is_dir($cache_dir)) { $dh=opendir($cache_dir); - while($file=readdir($dh)){ - if($file!='.' and $file!='..' and ($prefix==='' || strpos($file, $prefix) === 0)){ + while($file=readdir($dh)) { + if($file!='.' and $file!='..' and ($prefix==='' || strpos($file, $prefix) === 0)) { unlink($cache_dir.$file); } } diff --git a/lib/cache/xcache.php b/lib/cache/xcache.php index 951f9b47545..0739e4a2fa2 100644 --- a/lib/cache/xcache.php +++ b/lib/cache/xcache.php @@ -28,7 +28,7 @@ class OC_Cache_XCache { } public function set($key, $value, $ttl=0) { - if($ttl>0){ + if($ttl>0) { return xcache_set($this->getNamespace().$key,$value,$ttl); }else{ return xcache_set($this->getNamespace().$key,$value); @@ -43,7 +43,7 @@ class OC_Cache_XCache { return xcache_unset($this->getNamespace().$key); } - public function clear($prefix=''){ + public function clear($prefix='') { xcache_unset_by_prefix($this->getNamespace().$prefix); return true; } |