Fixing Code Sniffer errors

This commit is contained in:
Larry E. Masters 2015-12-28 15:34:04 -05:00
parent 33f2f46868
commit c2449c9d16
4 changed files with 3 additions and 4 deletions

View file

@ -275,7 +275,7 @@ class Cache {
* *
* @param string $config [optional] The config name you wish to have garbage collected. Defaults to 'default' * @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 * @param int $expires [optional] An expires timestamp. Defaults to NULL
* @return boolean * @return bool
*/ */
public static function gc($config = 'default', $expires = null) { public static function gc($config = 'default', $expires = null) {
return static::$_engines[$config]->gc($expires); return static::$_engines[$config]->gc($expires);

View file

@ -108,7 +108,7 @@ class FileEngine extends CacheEngine {
* @param int $duration How long to cache the data, in seconds * @param int $duration How long to cache the data, in seconds
* @return bool True if the data was successfully cached, false on failure * @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) { if (!$this->_init) {
return false; return false;
} }

View file

@ -157,7 +157,6 @@ class DatabaseSessionTest extends CakeTestCase {
$this->assertTrue($this->storage->destroy('foo'), 'Destroy failed'); $this->assertTrue($this->storage->destroy('foo'), 'Destroy failed');
$this->assertSame($this->storage->read('foo'), ''); $this->assertSame($this->storage->read('foo'), '');
} }
/** /**