1 | <?php |
||
14 | trait SemanticHtmlModulesTrait { |
||
15 | |||
16 | public abstract function addHtmlComponent($htmlComponent); |
||
17 | |||
18 | /** |
||
19 | * Module checkbox |
||
20 | * @param string $identifier |
||
21 | * @param string $label |
||
22 | * @param mixed $value |
||
23 | * @param CheckboxType $type |
||
24 | * @return HtmlCheckbox |
||
25 | */ |
||
26 | public function htmlCheckbox($identifier, $label=NULL, $value=NULL, $type=NULL) { |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @param string $identifier |
||
33 | * @param int $rowCount |
||
|
|||
34 | * @param int $colCount |
||
35 | * @return HtmlRating |
||
36 | */ |
||
37 | public function htmlRating($identifier, $value, $max, $icon="") { |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * @param string $identifier |
||
44 | * @param int $value |
||
45 | * @param string $label |
||
46 | * @return HtmlProgress |
||
47 | */ |
||
48 | public function htmlProgress($identifier, $value=0, $label=NULL) { |
||
51 | |||
52 | /** |
||
53 | * |
||
54 | * @param string $identifier |
||
55 | * @param string $placeholder |
||
56 | * @return HtmlSearch |
||
57 | */ |
||
58 | public function htmlSearch($identifier, $placeholder=NULL, $icon=NULL) { |
||
61 | |||
62 | /** |
||
63 | * |
||
64 | * @param string $identifier |
||
65 | * @param mixed $content |
||
66 | * @return HtmlDimmer |
||
67 | */ |
||
68 | public function htmlDimmer($identifier, $content=NULL) { |
||
71 | |||
72 | |||
73 | /** |
||
74 | * @param string $identifier |
||
75 | * @param string $header |
||
76 | * @param string $content |
||
77 | * @param array $actions |
||
78 | * @return HtmlModal |
||
79 | */ |
||
80 | public function htmlModal($identifier, $header="", $content="", $actions=array()) { |
||
83 | } |
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.