Skip to content

Commit

Permalink
fix various things
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 12, 2016
1 parent 96dfbff commit 057492d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Cache/ArrayStore.php
Expand Up @@ -100,6 +100,7 @@ public function forget($key)
public function flush()
{
$this->storage = [];

return true;
}

Expand Down
4 changes: 3 additions & 1 deletion src/Illuminate/Cache/FileStore.php
Expand Up @@ -188,12 +188,14 @@ public function flush()
{
if ($this->files->isDirectory($this->directory)) {
foreach ($this->files->directories($this->directory) as $directory) {
if(!$this->files->deleteDirectory($directory)){
if (! $this->files->deleteDirectory($directory)) {
return false;
}
}

return true;
}

return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/NullStore.php
Expand Up @@ -93,7 +93,7 @@ public function forget($key)
*/
public function flush()
{
//
return true;
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Illuminate/Cache/RedisStore.php
Expand Up @@ -170,7 +170,9 @@ public function forget($key)
*/
public function flush()
{
return (bool) $this->connection()->flushdb();
$this->connection()->flushdb();

return true;
}

/**
Expand Down

0 comments on commit 057492d

Please sign in to comment.