summaryrefslogtreecommitdiffstats
path: root/lib/cache/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cache/file.php')
-rw-r--r--lib/cache/file.php12
1 files changed, 6 insertions, 6 deletions
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);
}
}