@@ -91,6 +91,9 @@ |
||
91 | 91 | return new Conjunction( $subdescriptions ); |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param \SMWDataValue $dataValue |
|
96 | + */ |
|
94 | 97 | private function newSubdescription( $dataValue, $comparator ) { |
95 | 98 | |
96 | 99 | $description = new ValueDescription( |
@@ -141,6 +141,9 @@ |
||
141 | 141 | return 'pages'; |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param SMWDataValue $typeValue |
|
146 | + */ |
|
144 | 147 | private function displayExtraInformationAbout( $typeValue ) { |
145 | 148 | |
146 | 149 | $html = ''; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * the provided name is not allowed. An object is returned |
72 | 72 | * in any case. |
73 | 73 | * |
74 | - * @param string $propertyName |
|
74 | + * @param string $propertyLabel |
|
75 | 75 | * |
76 | 76 | * @return SMWPropertyValue |
77 | 77 | */ |
@@ -192,6 +192,9 @@ discard block |
||
192 | 192 | } |
193 | 193 | } |
194 | 194 | |
195 | + /** |
|
196 | + * @param boolean $isinverse |
|
197 | + */ |
|
195 | 198 | public function setInverse( $isinverse ) { |
196 | 199 | return $this->m_dataitem = new SMWDIProperty( $this->m_dataitem->getKey(), ( $isinverse == true ) ); |
197 | 200 | } |
@@ -319,6 +322,7 @@ discard block |
||
319 | 322 | |
320 | 323 | /** |
321 | 324 | * Create special highlighting for hinting at special properties. |
325 | + * @param string $text |
|
322 | 326 | */ |
323 | 327 | protected function highlightText( $text, $linker = null ) { |
324 | 328 |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @param $property SMWDIProperty property object for which this value is made |
140 | 140 | * @param $valueString mixed user value string, or false if unknown |
141 | 141 | * @param $caption mixed user-defined caption, or false if none given |
142 | - * @param $contextPage SMWDIWikiPage that provides a context for parsing the value string, or null |
|
142 | + * @param DIWikiPage $contextPage SMWDIWikiPage that provides a context for parsing the value string, or null |
|
143 | 143 | * |
144 | 144 | * @return DataValue |
145 | 145 | */ |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string $propertyName property string |
161 | 161 | * @param string $valueString user value string |
162 | 162 | * @param mixed $caption user-defined caption |
163 | - * @param SMWDIWikiPage|null $contextPage context for parsing the value string |
|
163 | + * @param null|DIWikiPage $contextPage context for parsing the value string |
|
164 | 164 | * |
165 | 165 | * @return DataValue |
166 | 166 | */ |
@@ -245,6 +245,8 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * @deprecated since 2.4, use DataTypeRegistry::newPropertyObjectValueByText |
247 | 247 | * |
248 | + * @param string $propertyName |
|
249 | + * @param string $valueString |
|
248 | 250 | * @return DataValue |
249 | 251 | */ |
250 | 252 | public function newPropertyValue( $propertyName, $valueString, |
@@ -255,7 +257,7 @@ discard block |
||
255 | 257 | /** |
256 | 258 | * @since 2.4 |
257 | 259 | * |
258 | - * @param string $propertyName |
|
260 | + * @param string $propertyLabel |
|
259 | 261 | * |
260 | 262 | * @return DataValue |
261 | 263 | */ |
@@ -265,6 +267,8 @@ discard block |
||
265 | 267 | |
266 | 268 | /** |
267 | 269 | * @deprecated since 1.9, use DataTypeRegistry::registerDataType |
270 | + * @param string $id |
|
271 | + * @param string $className |
|
268 | 272 | */ |
269 | 273 | public static function registerDatatype( $id, $className, $dataItemId, $label = false ) { |
270 | 274 | DataTypeRegistry::getInstance()->registerDataType( $id, $className, $dataItemId, $label ); |
@@ -272,6 +276,8 @@ discard block |
||
272 | 276 | |
273 | 277 | /** |
274 | 278 | * @deprecated since 1.9, use DataTypeRegistry::registerDataTypeAlias |
279 | + * @param string $id |
|
280 | + * @param string $label |
|
275 | 281 | */ |
276 | 282 | public static function registerDatatypeAlias( $id, $label ) { |
277 | 283 | DataTypeRegistry::getInstance()->registerDataTypeAlias( $id, $label ); |
@@ -29,7 +29,6 @@ |
||
29 | 29 | /** |
30 | 30 | * @see DataValue::parseUserValue |
31 | 31 | * |
32 | - * @param string $value |
|
33 | 32 | */ |
34 | 33 | protected function parseUserValue( $userValue ) { |
35 | 34 |
@@ -31,7 +31,6 @@ |
||
31 | 31 | * @since 2.1 |
32 | 32 | * |
33 | 33 | * @param Language $contentLanguage |
34 | - * @param Language|null $userLanguage |
|
35 | 34 | */ |
36 | 35 | public function __construct( Language $contentLanguage) { |
37 | 36 | $this->contentLanguage = $contentLanguage; |
@@ -182,6 +182,11 @@ |
||
182 | 182 | return true; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $property |
|
187 | + * |
|
188 | + * @return string |
|
189 | + */ |
|
185 | 190 | private function preprocessPropertyString( $property ) { |
186 | 191 | |
187 | 192 | if ( $property{0} !== '_' ) { |
@@ -119,6 +119,9 @@ |
||
119 | 119 | return $text . $languagecode; |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param DataValue $dataValue |
|
124 | + */ |
|
122 | 125 | private function findValueOutputFor( $type, $dataValue, $linker ) { |
123 | 126 | switch ( $type ) { |
124 | 127 | case self::VALUE: return $dataValue->getWikiValue(); |
@@ -95,7 +95,6 @@ discard block |
||
95 | 95 | * $icon should be one of: 'warning' (default), 'info'. |
96 | 96 | * |
97 | 97 | * @param array $messages |
98 | - * @param string $icon Acts like an enum. Callers must ensure safety, since this value is used directly in the output. |
|
99 | 98 | * @param string $seperator |
100 | 99 | * @param boolean $escape Should the messages be escaped or not (ie when they already are) |
101 | 100 | * |
@@ -201,7 +200,7 @@ discard block |
||
201 | 200 | * @param mixed $namespace |
202 | 201 | * @param boolean $complete |
203 | 202 | * |
204 | - * @return true |
|
203 | + * @return boolean |
|
205 | 204 | * |
206 | 205 | * @codeCoverageIgnore |
207 | 206 | */ |