Skip to content
Permalink
Browse files

Changing where bool is returned

  • Loading branch information...
phpnut committed Dec 14, 2015
1 parent 26ea74c commit 8f52cefdccceb44a5e2e705261780a95d971c29c
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/Cake/Cache/Cache.php
  2. +1 −1 lib/Cake/Model/Datasource/Session/CacheSession.php
@@ -278,7 +278,7 @@ public static function set($settings = array(), $value = null, $config = 'defaul
* @return void
*/
public static function gc($config = 'default', $expires = null) {
return static::$_engines[$config]->gc($expires);
static::$_engines[$config]->gc($expires);
}
/**
@@ -452,7 +452,7 @@ public static function delete($key, $config = 'default') {
$success = static::$_engines[$config]->delete($settings['prefix'] . $key);
static::set(null, $config);
return (bool)$success;
return $success;
}
/**
@@ -73,7 +73,7 @@ public function write($id, $data) {
* @return bool True for successful delete, false otherwise.
*/
public function destroy($id) {
return Cache::delete($id, Configure::read('Session.handler.config'));
return (bool)Cache::delete($id, Configure::read('Session.handler.config'));
}
/**

0 comments on commit 8f52cef

Please sign in to comment.
You can’t perform that action at this time.