@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * |
181 | 181 | * @param Parser $parser |
182 | 182 | * |
183 | - * @return SubobjectParserFunction |
|
183 | + * @return SubobjectParserFunc |
|
184 | 184 | */ |
185 | 185 | public function newSubobjectParserFunction( Parser $parser ) { |
186 | 186 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | * |
210 | 210 | * @param Parser $parser |
211 | 211 | * |
212 | - * @return RecurringEventsParserFunction |
|
212 | + * @return RecurringEventsParserFunc |
|
213 | 213 | */ |
214 | 214 | public function newRecurringEventsParserFunction( Parser $parser ) { |
215 | 215 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @note All strings given must be usable and safe in wiki and HTML |
22 | 22 | * contexts. |
23 | 23 | * |
24 | - * @param $storeName string name of the storage backend for which this is generated |
|
24 | + * @param string $storeName string name of the storage backend for which this is generated |
|
25 | 25 | * @param $entries array of name => value of informative entries to display |
26 | 26 | * @param $query SMWQuery or null, if given add basic data about this query as well |
27 | 27 | * |
@@ -72,7 +72,6 @@ discard block |
||
72 | 72 | * @since 2.5 |
73 | 73 | * |
74 | 74 | * @param string $type |
75 | - * @param array $rows |
|
76 | 75 | * |
77 | 76 | * @return string |
78 | 77 | */ |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * the provided name is not allowed. An object is returned |
83 | 83 | * in any case. |
84 | 84 | * |
85 | - * @param string $propertyName |
|
85 | + * @param string $propertyLabel |
|
86 | 86 | * |
87 | 87 | * @return SMWPropertyValue |
88 | 88 | */ |
@@ -247,6 +247,9 @@ discard block |
||
247 | 247 | } |
248 | 248 | } |
249 | 249 | |
250 | + /** |
|
251 | + * @param boolean $isinverse |
|
252 | + */ |
|
250 | 253 | public function setInverse( $isinverse ) { |
251 | 254 | return $this->m_dataitem = new DIProperty( $this->m_dataitem->getKey(), ( $isinverse == true ) ); |
252 | 255 | } |
@@ -448,6 +451,9 @@ discard block |
||
448 | 451 | return $this->m_dataitem->getLabel(); |
449 | 452 | } |
450 | 453 | |
454 | + /** |
|
455 | + * @param string $value |
|
456 | + */ |
|
451 | 457 | private function doNormalizeUserValue( $value ) { |
452 | 458 | |
453 | 459 | if ( |
@@ -301,6 +301,9 @@ discard block |
||
301 | 301 | return true; |
302 | 302 | } |
303 | 303 | |
304 | + /** |
|
305 | + * @param double $entityRebuildDispatcher |
|
306 | + */ |
|
304 | 307 | private function doExecuteFor( $entityRebuildDispatcher, &$id ) { |
305 | 308 | |
306 | 309 | if ( !$this->options->has( 'ignore-exceptions' ) ) { |
@@ -406,6 +409,9 @@ discard block |
||
406 | 409 | $this->reportMessage( "\n\n{$matchesCount} IDs removed.\n\n" ); |
407 | 410 | } |
408 | 411 | |
412 | + /** |
|
413 | + * @param string $startIdFile |
|
414 | + */ |
|
409 | 415 | private function idFileIsWritable( $startIdFile ) { |
410 | 416 | |
411 | 417 | if ( !is_writable( file_exists( $startIdFile ) ? $startIdFile : dirname( $startIdFile ) ) ) { |
@@ -422,7 +428,7 @@ discard block |
||
422 | 428 | } |
423 | 429 | |
424 | 430 | /** |
425 | - * @param array $options |
|
431 | + * @param Options $options |
|
426 | 432 | */ |
427 | 433 | private function setFiltersFromOptions( Options $options ) { |
428 | 434 | $this->filters = array(); |
@@ -442,6 +448,10 @@ discard block |
||
442 | 448 | } |
443 | 449 | } |
444 | 450 | |
451 | + /** |
|
452 | + * @param boolean $verbose |
|
453 | + * @param string $progress |
|
454 | + */ |
|
445 | 455 | private function doPrintDotProgressIndicator( $verbose, $counter, $progress ) { |
446 | 456 | |
447 | 457 | if ( ( $counter - 1 ) % 60 === 0 ) { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * @since 2.4 |
136 | 136 | * |
137 | - * @param Language|string $languageCode |
|
137 | + * @param Language|string $language |
|
138 | 138 | * |
139 | 139 | * @return ExtraneousLanguage |
140 | 140 | */ |
@@ -252,7 +252,6 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * @since 2.5 |
254 | 254 | * |
255 | - * @param integer $ns |
|
256 | 255 | * @param string $url |
257 | 256 | * |
258 | 257 | * @return string |
@@ -187,7 +187,7 @@ |
||
187 | 187 | /** |
188 | 188 | * @since 2.5 |
189 | 189 | * |
190 | - * @return string |
|
190 | + * @return integer |
|
191 | 191 | */ |
192 | 192 | public function getId() { |
193 | 193 | return $this->id; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param array $idList |
78 | 78 | * |
79 | - * @return DIWikiPage[] |
|
79 | + * @return \SMW\Iterators\MappingIterator |
|
80 | 80 | */ |
81 | 81 | public function getDataItemPoolHashListFor( array $idList ) { |
82 | 82 | |
@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return $wikiPage; |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param integer $id |
|
135 | + */ |
|
133 | 136 | private function canMatchById( $id ) { |
134 | 137 | |
135 | 138 | $row = $this->connection->selectRow( |
@@ -166,12 +166,18 @@ discard block |
||
166 | 166 | } |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param string|false $fieldType |
|
171 | + */ |
|
169 | 172 | private function doCreateField( $tableName, $fieldName, $position, $fieldType ) { |
170 | 173 | $this->reportMessage( " ... creating field $fieldName ... " ); |
171 | 174 | $this->connection->query( "ALTER TABLE $tableName ADD `$fieldName` $fieldType $position", __METHOD__ ); |
172 | 175 | $this->reportMessage( "done.\n" ); |
173 | 176 | } |
174 | 177 | |
178 | + /** |
|
179 | + * @param string|false $newFieldType |
|
180 | + */ |
|
175 | 181 | private function doUpdateFieldType( $tableName, $fieldName, $position, $oldFieldType, $newFieldType ) { |
176 | 182 | $this->reportMessage( " ... changing type of field $fieldName from '$oldFieldType' to '$newFieldType' ... " ); |
177 | 183 | |
@@ -227,6 +233,9 @@ discard block |
||
227 | 233 | } |
228 | 234 | } |
229 | 235 | |
236 | + /** |
|
237 | + * @param string $tableName |
|
238 | + */ |
|
230 | 239 | private function doDropObsoleteIndicies( $tableName, array &$indicies ) { |
231 | 240 | |
232 | 241 | $tableName = $this->connection->tableName( $tableName ); |
@@ -281,6 +290,9 @@ discard block |
||
281 | 290 | $this->reportMessage( "done.\n" ); |
282 | 291 | } |
283 | 292 | |
293 | + /** |
|
294 | + * @param string $tableName |
|
295 | + */ |
|
284 | 296 | private function doCreateIndex( $tableName, $indexType, $indexName, $columns, array $indexOptions ) { |
285 | 297 | |
286 | 298 | $tableName = $this->connection->tableName( $tableName ); |
@@ -157,6 +157,9 @@ discard block |
||
157 | 157 | } |
158 | 158 | } |
159 | 159 | |
160 | + /** |
|
161 | + * @param string|false $fieldType |
|
162 | + */ |
|
160 | 163 | private function doCreateField( $tableName, $fieldName, $position, $fieldType ) { |
161 | 164 | |
162 | 165 | if ( strpos( $tableName, 'ft_search' ) !== false ) { |
@@ -168,6 +171,9 @@ discard block |
||
168 | 171 | $this->reportMessage( "done.\n" ); |
169 | 172 | } |
170 | 173 | |
174 | + /** |
|
175 | + * @param string|false $newFieldType |
|
176 | + */ |
|
171 | 177 | private function doUpdateFieldType( $tableName, $fieldName, $position, $oldFieldType, $newFieldType ) { |
172 | 178 | $this->reportMessage( " ... changing field type is not supported in SQLite (http://www.sqlite.org/omitted.html) \n" ); |
173 | 179 | $this->reportMessage( " Please delete and reinitialize the tables to remove obsolete data, or just keep it.\n" ); |
@@ -209,6 +215,9 @@ discard block |
||
209 | 215 | } |
210 | 216 | } |
211 | 217 | |
218 | + /** |
|
219 | + * @param string $tableName |
|
220 | + */ |
|
212 | 221 | private function doDropObsoleteIndicies( $tableName, array &$indicies ) { |
213 | 222 | |
214 | 223 | $currentIndicies = $this->getIndexInfo( $tableName ); |
@@ -249,6 +258,9 @@ discard block |
||
249 | 258 | $this->reportMessage( "done.\n" ); |
250 | 259 | } |
251 | 260 | |
261 | + /** |
|
262 | + * @param string $tableName |
|
263 | + */ |
|
252 | 264 | private function doCreateIndex( $tableName, $indexType, $indexName, $columns, array $indexOptions ) { |
253 | 265 | |
254 | 266 | if ( $indexType === 'FULLTEXT' ) { |