diff --git a/src/Illuminate/Cache/ArrayStore.php b/src/Illuminate/Cache/ArrayStore.php index 3b6a614d006f..d2f9140dc7cc 100644 --- a/src/Illuminate/Cache/ArrayStore.php +++ b/src/Illuminate/Cache/ArrayStore.php @@ -100,6 +100,7 @@ public function forget($key) public function flush() { $this->storage = []; + return true; } diff --git a/src/Illuminate/Cache/FileStore.php b/src/Illuminate/Cache/FileStore.php index c95f9d529e93..867ff6c21fa8 100755 --- a/src/Illuminate/Cache/FileStore.php +++ b/src/Illuminate/Cache/FileStore.php @@ -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; } diff --git a/src/Illuminate/Cache/NullStore.php b/src/Illuminate/Cache/NullStore.php index 9914c960d7da..16e869c80662 100755 --- a/src/Illuminate/Cache/NullStore.php +++ b/src/Illuminate/Cache/NullStore.php @@ -93,7 +93,7 @@ public function forget($key) */ public function flush() { - // + return true; } /** diff --git a/src/Illuminate/Cache/RedisStore.php b/src/Illuminate/Cache/RedisStore.php index 94f926ac8374..1524c2359951 100755 --- a/src/Illuminate/Cache/RedisStore.php +++ b/src/Illuminate/Cache/RedisStore.php @@ -170,7 +170,9 @@ public function forget($key) */ public function flush() { - return (bool) $this->connection()->flushdb(); + $this->connection()->flushdb(); + + return true; } /**