@@ -100,6 +100,7 @@ |
||
100 | 100 | * |
101 | 101 | * @since 2.3 |
102 | 102 | * |
103 | + * @param string $table |
|
103 | 104 | * @return array |
104 | 105 | */ |
105 | 106 | public function getOrderedDiffByTable( $table = null ) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @param string $propertyName property string |
183 | 183 | * @param string $valueString user value string |
184 | 184 | * @param mixed $caption user-defined caption |
185 | - * @param SMWDIWikiPage|null $contextPage context for parsing the value string |
|
185 | + * @param null|DIWikiPage $contextPage context for parsing the value string |
|
186 | 186 | * |
187 | 187 | * @return DataValue |
188 | 188 | */ |
@@ -306,6 +306,8 @@ discard block |
||
306 | 306 | /** |
307 | 307 | * @deprecated since 2.4, use DataTypeRegistry::newDataValueByText |
308 | 308 | * |
309 | + * @param string $propertyName |
|
310 | + * @param string $valueString |
|
309 | 311 | * @return DataValue |
310 | 312 | */ |
311 | 313 | public function newPropertyValue( $propertyName, $valueString, $caption = false, DIWikiPage $contextPage = null ) { |
@@ -314,6 +316,8 @@ discard block |
||
314 | 316 | |
315 | 317 | /** |
316 | 318 | * @deprecated since 1.9, use DataTypeRegistry::registerDataType |
319 | + * @param string $id |
|
320 | + * @param string $className |
|
317 | 321 | */ |
318 | 322 | public static function registerDatatype( $id, $className, $dataItemId, $label = false ) { |
319 | 323 | DataTypeRegistry::getInstance()->registerDataType( $id, $className, $dataItemId, $label ); |
@@ -321,6 +325,8 @@ discard block |
||
321 | 325 | |
322 | 326 | /** |
323 | 327 | * @deprecated since 1.9, use DataTypeRegistry::registerDataTypeAlias |
328 | + * @param string $id |
|
329 | + * @param string $label |
|
324 | 330 | */ |
325 | 331 | public static function registerDatatypeAlias( $id, $label ) { |
326 | 332 | DataTypeRegistry::getInstance()->registerDataTypeAlias( $id, $label ); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * @since 2.3 |
95 | 95 | * |
96 | - * @param array|false $namespaces |
|
96 | + * @param boolean $namespaces |
|
97 | 97 | */ |
98 | 98 | public function setNamespacesTo( $namespaces ) { |
99 | 99 | $this->namespaces = $namespaces; |
@@ -350,6 +350,9 @@ discard block |
||
350 | 350 | } |
351 | 351 | } |
352 | 352 | |
353 | + /** |
|
354 | + * @param boolean $emptyRange |
|
355 | + */ |
|
353 | 356 | private function findNextIdPosition( &$id, $emptyRange ) { |
354 | 357 | |
355 | 358 | $nextPosition = $id + $this->iterationLimit; |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | * represent. Returns null if this attempt failed. |
404 | 404 | * |
405 | 405 | * @param ExpElement $expElement |
406 | - * @return SMWDataItem or null |
|
406 | + * @return null|DIWikiPage or null |
|
407 | 407 | */ |
408 | 408 | public function findDataItemForExpElement( ExpElement $expElement ) { |
409 | 409 | return self::$dataItemByExpElementMatchFinder->tryToFindDataItemForExpElement( $expElement ); |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * must take the type of the annotated object into account for some |
441 | 441 | * reason. |
442 | 442 | * |
443 | - * @param $propertyKey string the Id of the special property |
|
443 | + * @param string $propertyKey string the Id of the special property |
|
444 | 444 | * @param $forNamespace integer the namespace of the page which has a value for this property |
445 | 445 | * @return ExpNsResource|null |
446 | 446 | */ |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | * elements are always preferred in query answering. |
621 | 621 | * |
622 | 622 | * @param $dataItem SMWDataItem |
623 | - * @return ExpElement|null |
|
623 | + * @return ExpLiteral|null |
|
624 | 624 | */ |
625 | 625 | static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) { |
626 | 626 |
@@ -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 | */ |
@@ -170,6 +170,9 @@ discard block |
||
170 | 170 | return $dependencySubjectList; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param DIWikiPage[] $subjects |
|
175 | + */ |
|
173 | 176 | private function doResolveDependenciesFromDescription( &$subjects, $description ) { |
174 | 177 | |
175 | 178 | if ( $description instanceof ValueDescription && $description->getDataItem() instanceof DIWikiPage ) { |
@@ -249,6 +252,9 @@ discard block |
||
249 | 252 | } |
250 | 253 | } |
251 | 254 | |
255 | + /** |
|
256 | + * @param DIWikiPage|null $subject |
|
257 | + */ |
|
252 | 258 | private function doMatchSubproperty( &$subjects, $subject, DIProperty $property ) { |
253 | 259 | |
254 | 260 | $subproperties = array(); |
@@ -47,7 +47,6 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @since 1.9 |
49 | 49 | * |
50 | - * @param array $params |
|
51 | 50 | * |
52 | 51 | * @return string|null |
53 | 52 | */ |
@@ -136,6 +135,9 @@ discard block |
||
136 | 135 | return $query; |
137 | 136 | } |
138 | 137 | |
138 | + /** |
|
139 | + * @param \SMWQuery $query |
|
140 | + */ |
|
139 | 141 | private function addQueryProfile( $query ) { |
140 | 142 | |
141 | 143 | $query->setContextPage( |
@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * @since 1.9 |
68 | 68 | * |
69 | - * @return true |
|
69 | + * @return boolean |
|
70 | 70 | */ |
71 | 71 | public function process() { |
72 | 72 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @since 1.8 |
62 | 62 | * @param boolean $verbose |
63 | - * @param DatabaseBase $db used for writing |
|
63 | + * @param SMW\MediaWiki\Database $db used for writing |
|
64 | 64 | */ |
65 | 65 | protected function setupTables( $verbose, $db ) { |
66 | 66 | global $wgDBtype; |
@@ -249,6 +249,7 @@ discard block |
||
249 | 249 | * Create some initial DB entries for important built-in properties. Having the DB contents predefined |
250 | 250 | * allows us to safe DB calls when certain data is needed. At the same time, the entries in the DB |
251 | 251 | * make sure that DB-based functions work as with all other properties. |
252 | + * @param boolean $verbose |
|
252 | 253 | */ |
253 | 254 | protected function setupPredefinedProperties( $verbose, DatabaseBase $db ) { |
254 | 255 | global $wgDBtype; |