@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\Integration\ExtraneousLanguage; |
4 | 4 | |
5 | 5 | use SMW\ExtraneousLanguage\ExtraneousLanguage; |
6 | -use SMW\Tests\TestEnvironment; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @group semantic-mediawiki |
@@ -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' ) { |
@@ -54,9 +54,8 @@ |
||
54 | 54 | /** |
55 | 55 | * @since 2.5 |
56 | 56 | * |
57 | - * @param SQLStore $store |
|
58 | 57 | * |
59 | - * @return SearchTable |
|
58 | + * @return TextSanitizer |
|
60 | 59 | */ |
61 | 60 | public function newTextSanitizer() { |
62 | 61 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @since 2.5 |
32 | 32 | * |
33 | - * @param LanguageJsonFileContentsReader $LanguageJsonFileContentsReader |
|
33 | + * @param LanguageJsonFileContentsReader $languageJsonFileContentsReader |
|
34 | 34 | */ |
35 | 35 | public function __construct( LanguageJsonFileContentsReader $languageJsonFileContentsReader ) { |
36 | 36 | $this->languageJsonFileContentsReader = $languageJsonFileContentsReader; |