Skip to content
Permalink
Browse files

Fixing Code Sniffer errors

  • Loading branch information...
phpnut committed Dec 28, 2015
1 parent 33f2f46 commit c2449c9d16a0a1290f350337ab520fd80c0bf53e
@@ -275,7 +275,7 @@ public static function set($settings = array(), $value = null, $config = 'defaul
*
* @param string $config [optional] The config name you wish to have garbage collected. Defaults to 'default'
* @param int $expires [optional] An expires timestamp. Defaults to NULL
* @return boolean
* @return bool
*/
public static function gc($config = 'default', $expires = null) {
return static::$_engines[$config]->gc($expires);
@@ -108,7 +108,7 @@ public function gc($expires = null) {
* @param int $duration How long to cache the data, in seconds
* @return bool True if the data was successfully cached, false on failure
*/
public function write($key, $data = null, $duration) {
public function write($key, $data, $duration) {
if (!$this->_init) {
return false;
}
@@ -53,7 +53,7 @@ public function close() {
*/
public function read($id) {
$data = Cache::read($id, Configure::read('Session.handler.config'));
if(empty($data)){
if (empty($data)){
return '';
}
return $data;
@@ -157,7 +157,6 @@ public function testDestroy() {
$this->assertTrue($this->storage->destroy('foo'), 'Destroy failed');
$this->assertSame($this->storage->read('foo'), '');
}
/**

0 comments on commit c2449c9

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