1 | <?php |
||
14 | class SimpleDiff |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Used language to setted for simple difference |
||
19 | * @var string |
||
20 | */ |
||
21 | private $language; |
||
22 | |||
23 | /** |
||
24 | * class final result |
||
25 | * @var object |
||
26 | */ |
||
27 | private $result; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private $blockList; |
||
33 | |||
34 | /** |
||
35 | * SimpleDiff Class constructure |
||
36 | * |
||
37 | * @param DateTime $time_difference The time to calculate with now |
||
|
|||
38 | * @param string $lang Language |
||
39 | */ |
||
40 | public function __construct($start, $end, $difference ) |
||
52 | |||
53 | /** |
||
54 | * Return difference period as an object |
||
55 | * |
||
56 | * @return object |
||
57 | */ |
||
58 | public function all() |
||
64 | |||
65 | /** |
||
66 | * Read ago config file |
||
67 | * |
||
68 | * @param integer $date date index in ago config file |
||
69 | * @param string $type duration type on ago config file |
||
70 | */ |
||
71 | public function read( $value, $type ) |
||
115 | |||
116 | /** |
||
117 | * Show priority of duration |
||
118 | * |
||
119 | * @param integer $date date index in ago config file |
||
120 | * @param string $type duration type on ago config file |
||
121 | */ |
||
122 | public function priority( $date, $type ) |
||
136 | |||
137 | public function lang( $value ) |
||
145 | |||
146 | /** |
||
147 | * Return fainal SimpleDiff result |
||
148 | * |
||
149 | * @return string |
||
150 | */ |
||
151 | public function get() |
||
174 | } |
||
175 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.