From 9a906d4ecfcc9a39b4994fb50086e420e315a4a5 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Thu, 9 Mar 2017 09:27:52 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- core/database.class.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 27ed0341..99302758 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -263,11 +263,32 @@ class SQLite extends DBEngine { // }}} // {{{ cache engines interface CacheEngine { + + /** + * @param string $key + */ public function get($key); + + /** + * @param string $key + * + * @return void + */ public function set($key, $val, $time=0); + + /** + * @return void + */ public function delete($key); + /** + * @return integer + */ public function get_hits(); + + /** + * @return integer + */ public function get_misses(); } class NoCache implements CacheEngine { @@ -818,7 +839,7 @@ class MockDatabase extends Database { /** * @param string $query * @param array $args - * @return mixed|PDOStatement + * @return PDOStatement */ public function get_one($query, $args=array()) {return $this->execute($query, $args);}