1 | <?php |
||
5 | class GetHumanCount |
||
6 | { |
||
7 | /** |
||
8 | * Get the second item from the collection. |
||
9 | * |
||
10 | * @param mixed $index |
||
|
|||
11 | * |
||
12 | * @return mixed |
||
13 | */ |
||
14 | public function second() |
||
20 | |||
21 | /** |
||
22 | * Get the third item from the collection. |
||
23 | * |
||
24 | * @param mixed $index |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function third() |
||
34 | |||
35 | /** |
||
36 | * Get the fourth item from the collection. |
||
37 | * |
||
38 | * @param mixed $index |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function fourth() |
||
48 | |||
49 | /** |
||
50 | * Get the fifth item from the collection. |
||
51 | * |
||
52 | * @param mixed $index |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function fifth() |
||
62 | |||
63 | /** |
||
64 | * Get the sixth item from the collection. |
||
65 | * |
||
66 | * @param mixed $index |
||
67 | * |
||
68 | * @return mixed |
||
69 | */ |
||
70 | public function sixth() |
||
76 | |||
77 | /** |
||
78 | * Get the seventh item from the collection. |
||
79 | * |
||
80 | * @param mixed $index |
||
81 | * |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function seventh() |
||
90 | |||
91 | /** |
||
92 | * Get the eighth item from the collection. |
||
93 | * |
||
94 | * @param mixed $index |
||
95 | * |
||
96 | * @return mixed |
||
97 | */ |
||
98 | public function eighth() |
||
104 | |||
105 | /** |
||
106 | * Get the ninth item from the collection. |
||
107 | * |
||
108 | * @param mixed $index |
||
109 | * |
||
110 | * @return mixed |
||
111 | */ |
||
112 | public function ninth() |
||
118 | |||
119 | /** |
||
120 | * Get the tenth item from the collection. |
||
121 | * |
||
122 | * @param mixed $index |
||
123 | * |
||
124 | * @return mixed |
||
125 | */ |
||
126 | public function tenth() |
||
132 | } |
||
133 |
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.