for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RazonYang\MediaWiki\ZhConverter;
class FakeMemCachedClient
{
public function add($key, $val, $exp = 0)
$val
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function add($key, /** @scrutinizer ignore-unused */ $val, $exp = 0)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$key
public function add(/** @scrutinizer ignore-unused */ $key, $val, $exp = 0)
$exp
public function add($key, $val, /** @scrutinizer ignore-unused */ $exp = 0)
return true;
}
public function decr($key, $amt = 1)
$amt
public function decr($key, /** @scrutinizer ignore-unused */ $amt = 1)
public function decr(/** @scrutinizer ignore-unused */ $key, $amt = 1)
return null;
public function delete($key, $time = 0)
public function delete(/** @scrutinizer ignore-unused */ $key, $time = 0)
$time
public function delete($key, /** @scrutinizer ignore-unused */ $time = 0)
return false;
public function makeKey()
public function disconnect_all()
public function enable_compress($enable)
$enable
public function enable_compress(/** @scrutinizer ignore-unused */ $enable)
public function forget_dead_hosts()
public function get($key)
public function get(/** @scrutinizer ignore-unused */ $key)
public function get_multi($keys)
return array_pad(array(), count($keys), null);
public function incr($key, $amt = 1)
public function incr($key, /** @scrutinizer ignore-unused */ $amt = 1)
public function incr(/** @scrutinizer ignore-unused */ $key, $amt = 1)
public function replace($key, $value, $exp = 0)
public function replace(/** @scrutinizer ignore-unused */ $key, $value, $exp = 0)
public function replace($key, $value, /** @scrutinizer ignore-unused */ $exp = 0)
$value
public function replace($key, /** @scrutinizer ignore-unused */ $value, $exp = 0)
public function run_command($sock, $cmd)
$sock
public function run_command(/** @scrutinizer ignore-unused */ $sock, $cmd)
$cmd
public function run_command($sock, /** @scrutinizer ignore-unused */ $cmd)
public function set($key, $value, $exp = 0)
public function set(/** @scrutinizer ignore-unused */ $key, $value, $exp = 0)
public function set($key, $value, /** @scrutinizer ignore-unused */ $exp = 0)
public function set($key, /** @scrutinizer ignore-unused */ $value, $exp = 0)
public function set_compress_threshold($thresh)
$thresh
public function set_compress_threshold(/** @scrutinizer ignore-unused */ $thresh)
public function set_debug($dbg)
$dbg
public function set_debug(/** @scrutinizer ignore-unused */ $dbg)
public function set_servers($list)
$list
public function set_servers(/** @scrutinizer ignore-unused */ $list)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.