Issues (23)

src/FakeMemCachedClient.php (22 issues)

Severity
1
<?php
2
namespace RazonYang\MediaWiki\ZhConverter;
3
4
class FakeMemCachedClient
5
{
6
    public function add($key, $val, $exp = 0)
0 ignored issues
show
The parameter $val is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

6
    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.

Loading history...
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

6
    public function add(/** @scrutinizer ignore-unused */ $key, $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.

Loading history...
The parameter $exp is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

6
    public function add($key, $val, /** @scrutinizer ignore-unused */ $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.

Loading history...
7
    {
8
        return true;
9
    }
10
11
    public function decr($key, $amt = 1)
0 ignored issues
show
The parameter $amt is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

11
    public function decr($key, /** @scrutinizer ignore-unused */ $amt = 1)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

11
    public function decr(/** @scrutinizer ignore-unused */ $key, $amt = 1)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
12
    {
13
        return null;
14
    }
15
16
    public function delete($key, $time = 0)
0 ignored issues
show
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

16
    public function delete(/** @scrutinizer ignore-unused */ $key, $time = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $time is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

16
    public function delete($key, /** @scrutinizer ignore-unused */ $time = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
        return false;
19
    }
20
21
    public function makeKey()
22
    {
23
    }
24
25
    public function disconnect_all()
26
    {
27
    }
28
29
    public function enable_compress($enable)
0 ignored issues
show
The parameter $enable is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

29
    public function enable_compress(/** @scrutinizer ignore-unused */ $enable)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
    {
31
    }
32
33
    public function forget_dead_hosts()
34
    {
35
    }
36
37
    public function get($key)
0 ignored issues
show
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

37
    public function get(/** @scrutinizer ignore-unused */ $key)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
38
    {
39
        return null;
40
    }
41
42
    public function get_multi($keys)
43
    {
44
        return array_pad(array(), count($keys), null);
45
    }
46
47
    public function incr($key, $amt = 1)
0 ignored issues
show
The parameter $amt is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

47
    public function incr($key, /** @scrutinizer ignore-unused */ $amt = 1)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

47
    public function incr(/** @scrutinizer ignore-unused */ $key, $amt = 1)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
48
    {
49
        return null;
50
    }
51
52
    public function replace($key, $value, $exp = 0)
0 ignored issues
show
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

52
    public function replace(/** @scrutinizer ignore-unused */ $key, $value, $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.

Loading history...
The parameter $exp is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

52
    public function replace($key, $value, /** @scrutinizer ignore-unused */ $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.

Loading history...
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

52
    public function replace($key, /** @scrutinizer ignore-unused */ $value, $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.

Loading history...
53
    {
54
        return false;
55
    }
56
57
    public function run_command($sock, $cmd)
0 ignored issues
show
The parameter $sock is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

57
    public function run_command(/** @scrutinizer ignore-unused */ $sock, $cmd)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $cmd is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

57
    public function run_command($sock, /** @scrutinizer ignore-unused */ $cmd)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
58
    {
59
        return null;
60
    }
61
62
    public function set($key, $value, $exp = 0)
0 ignored issues
show
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

62
    public function set(/** @scrutinizer ignore-unused */ $key, $value, $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.

Loading history...
The parameter $exp is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

62
    public function set($key, $value, /** @scrutinizer ignore-unused */ $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.

Loading history...
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

62
    public function set($key, /** @scrutinizer ignore-unused */ $value, $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.

Loading history...
63
    {
64
        return true;
65
    }
66
67
    public function set_compress_threshold($thresh)
0 ignored issues
show
The parameter $thresh is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

67
    public function set_compress_threshold(/** @scrutinizer ignore-unused */ $thresh)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
68
    {
69
    }
70
71
    public function set_debug($dbg)
0 ignored issues
show
The parameter $dbg is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

71
    public function set_debug(/** @scrutinizer ignore-unused */ $dbg)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
72
    {
73
    }
74
75
    public function set_servers($list)
0 ignored issues
show
The parameter $list is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

75
    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.

Loading history...
76
    {
77
    }
78
}
79