These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Manage Cache by Mock -> just for simulate the cache object |
||
5 | * |
||
6 | * @category lib |
||
7 | * @package lib\Cache |
||
8 | * @author Judicaël Paquet <[email protected]> |
||
9 | * @copyright Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93) |
||
10 | * @license https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël |
||
11 | * @version Release: 1.0.0 |
||
12 | * @filesource https://github.com/las93/venus2 |
||
13 | * @link https://github.com/las93 |
||
14 | * @since 1.0 |
||
15 | */ |
||
16 | namespace Venus\lib\Cache; |
||
17 | |||
18 | /** |
||
19 | * Manage Cache by Mock -> just for simulate the cache object |
||
20 | * |
||
21 | * @category lib |
||
22 | * @package lib\Cache |
||
23 | * @author Judicaël Paquet <[email protected]> |
||
24 | * @copyright Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93) |
||
25 | * @license https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël |
||
26 | * @version Release: 1.0.0 |
||
27 | * @filesource https://github.com/las93/venus2 |
||
28 | * @link https://github.com/las93 |
||
29 | * @since 1.0 |
||
30 | */ |
||
31 | class Mock implements CacheInterface |
||
32 | { |
||
33 | /** |
||
34 | * get a value |
||
35 | * |
||
36 | * @access public |
||
37 | * @param string $sName name of the session |
||
38 | * @param int $iFlags flags |
||
39 | * @param int $iTimeout expiration of cache |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function get(string $sName, int &$iFlags = null, int $iTimeout = 0) |
||
43 | { |
||
44 | return false; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * set a value |
||
49 | * |
||
50 | * @access public |
||
51 | * @param string $sName name of the session |
||
52 | * @param mixed $mValue value of this sesion var |
||
53 | * @param int $iFlag unused |
||
54 | * @param int $iExpire expiration of cache |
||
55 | * @return \Venus\lib\Cache\Apc |
||
56 | */ |
||
57 | public function set(string $sName, $mValue, int $iFlag = 0, int $iExpire = false) |
||
58 | { |
||
59 | return true; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * flush the cache |
||
64 | * |
||
65 | * @access public |
||
66 | * @return mixed |
||
67 | */ |
||
68 | public function flush() |
||
69 | { |
||
70 | return false; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * delete a value |
||
75 | * |
||
76 | * @access public |
||
77 | * @param string $sName name of the session |
||
78 | * @return mixed |
||
79 | */ |
||
80 | public function delete(string $sName) |
||
81 | { |
||
82 | return false; |
||
83 | } |
||
84 | |||
85 | /** |
||
86 | * add |
||
87 | * |
||
88 | * @access public |
||
89 | * @param string $sName name of the session |
||
90 | * @param mixed $mValue value of this sesion var |
||
91 | * @param int $iFlag unused |
||
0 ignored issues
–
show
|
|||
92 | * @param int $iExpire expiration of cache |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public function add($sName, $mValue, $iExpire = false) |
||
96 | { |
||
97 | return true; |
||
98 | } |
||
99 | } |
||
100 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.