1 | <?php |
||
16 | class Formatter implements FormatterInterface |
||
17 | { |
||
18 | /** |
||
19 | * Pluralizes or singularizes inputs |
||
20 | * @param string $str |
||
21 | * @return string $str |
||
22 | * */ |
||
23 | public static function addOrRemoveS($str) |
||
36 | |||
37 | /** |
||
38 | * Break down a delimited statement into set of string separated by comma |
||
39 | * |
||
40 | * @param string $str Statement to be broken down |
||
41 | * @param string $delimiter Character being searched for to bring about the break down |
||
42 | * @return string Comma-separated set of string |
||
43 | */ |
||
44 | public static function tokenize($str, $delimiter) |
||
57 | |||
58 | /** |
||
59 | * Generate unnamed placeholders depending on the number of table fields concerned |
||
60 | * |
||
61 | * @param array $record Set of affected table fields |
||
|
|||
62 | * @return array $placeholder Sql statement placeholders for field values |
||
63 | */ |
||
64 | public static function generateUnnamedPlaceholders(array $records) |
||
74 | |||
75 | /** |
||
76 | * Create an array of elements in the format 'array_key=array_value' of the argument array supplied |
||
77 | * |
||
78 | * @param array $record Associative type of array |
||
79 | * @return array $temp New array of elements in the format 'array_key=array_value' of the argument array supplied |
||
80 | */ |
||
81 | public static function makeAssociativeArray(array $record) |
||
97 | } |
||
98 |
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.