* add @method annotations to Cache class

* code beautify
This commit is contained in:
slawkens
2019-05-25 00:20:20 +02:00
parent 933b25194c
commit 7b770e09f7
7 changed files with 44 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ defined('MYAAC') or die('Direct access not allowed!');
class Cache_APCu
{
private $prefix = '';
private $prefix;
private $enabled;
public function __construct($prefix = '')
@@ -31,8 +31,9 @@ class Cache_APCu
public function get($key)
{
$tmp = '';
if($this->fetch($this->prefix . $key, $tmp))
if($this->fetch($this->prefix . $key, $tmp)) {
return $tmp;
}
return '';
}
@@ -49,4 +50,3 @@ class Cache_APCu
return $this->enabled;
}
}
?>