@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Lingo\Element constructor. |
61 | - * @param $term |
|
62 | - * @param $definition |
|
61 | + * @param string $term |
|
62 | + * @param string $definition |
|
63 | 63 | */ |
64 | 64 | public function __construct( &$term, &$definition = null ) { |
65 | 65 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | /** |
154 | 154 | * @param $target |
155 | - * @param $link |
|
155 | + * @param DOMElement $link |
|
156 | 156 | * @return mixed |
157 | 157 | */ |
158 | 158 | protected function &addClassAttributeToLink( $target, &$link ) { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | |
204 | 204 | /** |
205 | 205 | * @param StashingDOMDocument $doc |
206 | - * @return string |
|
206 | + * @return DOMElement |
|
207 | 207 | * @throws \MWException |
208 | 208 | */ |
209 | 209 | protected function getFullDefinitionAsTooltip( StashingDOMDocument &$doc ) { |
@@ -128,8 +128,8 @@ |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @param $definitions |
|
132 | - * @param $term |
|
131 | + * @param string[] $definitions |
|
132 | + * @param string $term |
|
133 | 133 | * @return array |
134 | 134 | */ |
135 | 135 | protected function queueDefinitions( $definitions, $term ) { |