Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
20455aa2fb
commit
9a906d4ecf
@ -263,11 +263,32 @@ class SQLite extends DBEngine {
|
|||||||
// }}}
|
// }}}
|
||||||
// {{{ cache engines
|
// {{{ cache engines
|
||||||
interface CacheEngine {
|
interface CacheEngine {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $key
|
||||||
|
*/
|
||||||
public function get($key);
|
public function get($key);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $key
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function set($key, $val, $time=0);
|
public function set($key, $val, $time=0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function delete($key);
|
public function delete($key);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
public function get_hits();
|
public function get_hits();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
public function get_misses();
|
public function get_misses();
|
||||||
}
|
}
|
||||||
class NoCache implements CacheEngine {
|
class NoCache implements CacheEngine {
|
||||||
@ -818,7 +839,7 @@ class MockDatabase extends Database {
|
|||||||
/**
|
/**
|
||||||
* @param string $query
|
* @param string $query
|
||||||
* @param array $args
|
* @param array $args
|
||||||
* @return mixed|PDOStatement
|
* @return PDOStatement
|
||||||
*/
|
*/
|
||||||
public function get_one($query, $args=array()) {return $this->execute($query, $args);}
|
public function get_one($query, $args=array()) {return $this->execute($query, $args);}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user