@@ -229,6 +229,10 @@ |
||
229 | 229 | return ByLanguageCollationMapper::getInstance()->findFirstLetterForCategory( $sortKey ); |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param SMWQueryResult $res |
|
234 | + * @param boolean $first_col |
|
235 | + */ |
|
232 | 236 | private function addRowFieldsToTemplate( $res, $row, &$first_col, &$columnIndex, $templateRenderer ) { |
233 | 237 | |
234 | 238 | // explicitly number parameters for more robust parsing (values may contain "=") |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param SMWQueryResult $queryResult |
61 | 61 | * |
62 | - * @return string|boolean |
|
62 | + * @return string |
|
63 | 63 | */ |
64 | 64 | public function getFileName( SMWQueryResult $queryResult ) { |
65 | 65 | return $this->fileName; |
@@ -87,7 +87,6 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @since 1.6 |
89 | 89 | * |
90 | - * @param SMWQueryResult $res |
|
91 | 90 | * |
92 | 91 | * @return string |
93 | 92 | */ |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | * |
394 | 394 | * @since 1.9 |
395 | 395 | * |
396 | - * @param $row |
|
396 | + * @param SMWResultArray[] $row |
|
397 | 397 | * |
398 | 398 | * @return string |
399 | 399 | */ |
@@ -422,6 +422,9 @@ discard block |
||
422 | 422 | $this->templateRenderer->addField( '#', $this->numRows ); |
423 | 423 | } |
424 | 424 | |
425 | + /** |
|
426 | + * @param SMWQueryResult $queryResult |
|
427 | + */ |
|
425 | 428 | protected function addCommonTemplateFields( $queryResult ) { |
426 | 429 | |
427 | 430 | if ( $this->mUserParam ) { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * |
59 | 59 | * @param SMWQueryResult $queryResult |
60 | 60 | * |
61 | - * @return string|boolean |
|
61 | + * @return string |
|
62 | 62 | */ |
63 | 63 | public function getFileName( SMWQueryResult $queryResult ) { |
64 | 64 | return $this->syntax == 'turtle' ? 'result.ttl' : 'result.rdf'; |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | * |
189 | 189 | * @param $results SMWQueryResult |
190 | 190 | * @param $fullParams array |
191 | - * @param $outputMode integer |
|
191 | + * @param integer $outputMode integer |
|
192 | 192 | * |
193 | 193 | * @return string |
194 | 194 | */ |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | /** |
466 | 466 | * @see SMWIResultPrinter::getQueryMode |
467 | 467 | * |
468 | - * @param $context |
|
468 | + * @param integer $context |
|
469 | 469 | * |
470 | 470 | * @return integer |
471 | 471 | */ |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | * |
608 | 608 | * @param ParamDefinition[] $definitions |
609 | 609 | * |
610 | - * @return array |
|
610 | + * @return \ParamProcessor\IParamDefinition[] |
|
611 | 611 | */ |
612 | 612 | public function getParamDefinitions( array $definitions ) { |
613 | 613 | return array_merge( $definitions, $this->getParameters() ); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * output, then the Semdata container will at least look as if properly |
174 | 174 | * initialised (though empty). |
175 | 175 | * |
176 | - * @return array |
|
176 | + * @return string[] |
|
177 | 177 | */ |
178 | 178 | public function __sleep() { |
179 | 179 | return array( 'mSubject', 'mPropVals', 'mProperties', 'subSemanticData', 'mHasVisibleProps', 'mHasVisibleSpecs', 'lastModified' ); |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | * Store a value for a given property identified by its text label |
368 | 368 | * (without namespace prefix). |
369 | 369 | * |
370 | - * @param $propertyName string |
|
370 | + * @param string $propertyName string |
|
371 | 371 | * @param $dataItem SMWDataItem |
372 | 372 | */ |
373 | 373 | public function addPropertyValue( $propertyName, SMWDataItem $dataItem ) { |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | * |
593 | 593 | * @since 1.9 |
594 | 594 | * |
595 | - * @param string $subobjectName|null |
|
595 | + * @param string $subobjectName |
|
596 | 596 | * |
597 | 597 | * @return boolean |
598 | 598 | */ |
@@ -65,7 +65,6 @@ discard block |
||
65 | 65 | * recorded multiple times in SMWOutputs. |
66 | 66 | * |
67 | 67 | * @param string $id |
68 | - * @param string $item |
|
69 | 68 | */ |
70 | 69 | public static function requireScript( $id, $script ) { |
71 | 70 | self::$scripts[$id] = $script; |
@@ -81,7 +80,7 @@ discard block |
||
81 | 80 | * Support for calling this with the old constants SMW_HEADER_STYLE |
82 | 81 | * and SMW_HEADER_TOOLTIP will vanish in SMW 1.7 at the latest. |
83 | 82 | * |
84 | - * @param mixed $id |
|
83 | + * @param string $id |
|
85 | 84 | * @param string $item |
86 | 85 | */ |
87 | 86 | public static function requireHeadItem( $id, $item = '' ) { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * @param[in] $left bool Should properties be displayed on the left side? |
152 | 152 | * @param[in] $incoming bool Is this an incoming? Or an outgoing? |
153 | 153 | * |
154 | - * @return A string containing the HTML with the factbox |
|
154 | + * @return string string containing the HTML with the factbox |
|
155 | 155 | */ |
156 | 156 | private function displayData( SMWSemanticData $data, $left = true, $incoming = false ) { |
157 | 157 | // Some of the CSS classes are different for the left or the right side. |
@@ -245,6 +245,7 @@ discard block |
||
245 | 245 | * @param[in] $property SMWPropertyValue The property this value is linked to the subject with |
246 | 246 | * @param[in] $value SMWDataValue The actual value |
247 | 247 | * @param[in] $incoming bool If this is an incoming or outgoing link |
248 | + * @param boolean $incoming |
|
248 | 249 | * |
249 | 250 | * @return string HTML with the link to the article, browse, and search pages |
250 | 251 | */ |
@@ -267,7 +268,7 @@ discard block |
||
267 | 268 | /** |
268 | 269 | * Displays the subject that is currently being browsed to. |
269 | 270 | * |
270 | - * @return A string containing the HTML with the subject line |
|
271 | + * @return string string containing the HTML with the subject line |
|
271 | 272 | */ |
272 | 273 | private function displayHead() { |
273 | 274 | global $wgOut; |
@@ -300,6 +301,7 @@ discard block |
||
300 | 301 | * Creates the HTML for the bottom bar including the links with further navigation options. |
301 | 302 | * |
302 | 303 | * @param[in] $more bool Are there more inproperties to be displayed? |
304 | + * @param boolean $more |
|
303 | 305 | * @return string HTMl with the bottom bar |
304 | 306 | */ |
305 | 307 | private function displayBottom( $more ) { |
@@ -329,6 +331,9 @@ discard block |
||
329 | 331 | * @param[in] $out bool Should the linked to page include outgoing properties? |
330 | 332 | * @param[in] $in bool Should the linked to page include incoming properties? |
331 | 333 | * @param[in] $offset int What is the offset for the incoming properties? |
334 | + * @param boolean $out |
|
335 | + * @param boolean $in |
|
336 | + * @param integer $offset |
|
332 | 337 | * |
333 | 338 | * @return string HTML with the link to this page |
334 | 339 | */ |
@@ -418,7 +423,7 @@ discard block |
||
418 | 423 | /** |
419 | 424 | * Creates the query form in order to quickly switch to a specific article. |
420 | 425 | * |
421 | - * @return A string containing the HTML for the form |
|
426 | + * @return string string containing the HTML for the form |
|
422 | 427 | */ |
423 | 428 | private function queryForm() { |
424 | 429 | SMWOutputs::requireResource( 'ext.smw.browse' ); |
@@ -445,6 +450,7 @@ discard block |
||
445 | 450 | |
446 | 451 | /** |
447 | 452 | * FIXME MW 1.25 |
453 | + * @param string $key |
|
448 | 454 | */ |
449 | 455 | private function addExternalHelpLinkFor( $key ) { |
450 | 456 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * @param integer $from |
43 | 43 | * @param integer $until |
44 | 44 | * |
45 | - * @return DIWikiPage[] |
|
45 | + * @return \SMWDIWikiPage[] |
|
46 | 46 | */ |
47 | 47 | public function getResults( $limit, $from, $until ) { |
48 | 48 | $description = new SomeProperty( new DIProperty( '_CONC' ), new ThingDescription() ); |