@@ -177,7 +177,7 @@ |
||
177 | 177 | /** |
178 | 178 | * @since 2.2 |
179 | 179 | * |
180 | - * @return array |
|
180 | + * @return string[] |
|
181 | 181 | */ |
182 | 182 | public function getErrors() { |
183 | 183 | return $this->errors; |
@@ -215,6 +215,9 @@ discard block |
||
215 | 215 | $this->errors = array_merge( $this->errors, $errors ); |
216 | 216 | } |
217 | 217 | |
218 | + /** |
|
219 | + * @param string $querystring |
|
220 | + */ |
|
218 | 221 | public function setQueryString( $querystring ) { |
219 | 222 | $this->queryString = $querystring; |
220 | 223 | } |
@@ -223,7 +226,7 @@ discard block |
||
223 | 226 | * @since 2.5 |
224 | 227 | * |
225 | 228 | * @param string|integer $key |
226 | - * @param mixed $value |
|
229 | + * @param double $value |
|
227 | 230 | */ |
228 | 231 | public function setOption( $key, $value ) { |
229 | 232 | $this->options[$key] = $value; |
@@ -309,7 +312,7 @@ discard block |
||
309 | 312 | * |
310 | 313 | * @param integer $limit |
311 | 314 | * |
312 | - * @return Query |
|
315 | + * @return SMWQuery |
|
313 | 316 | */ |
314 | 317 | public function setUnboundLimit( $limit ) { |
315 | 318 | $this->limit = (int)$limit; |
@@ -82,7 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * @since 2.4 |
84 | 84 | * |
85 | - * @param integer|boolean $queryFeatures |
|
85 | + * @param integer $queryFeatures |
|
86 | 86 | * |
87 | 87 | * @return QueryParser |
88 | 88 | */ |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | ); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param DIProperty $property |
|
127 | + */ |
|
125 | 128 | public function createQueryForSamplePagesThatContain( $property, array &$expectedSubjects ) { |
126 | 129 | |
127 | 130 | foreach ( $expectedSubjects as $key => $expectedSubject ) { |
@@ -159,6 +162,9 @@ discard block |
||
159 | 162 | return $query; |
160 | 163 | } |
161 | 164 | |
165 | + /** |
|
166 | + * @param \SMWDIWikiPage[] $results |
|
167 | + */ |
|
162 | 168 | private function assertResultOrder( $expected, $results ) { |
163 | 169 | |
164 | 170 | $hasSameOrder = true; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @since 1.9 |
36 | 36 | * |
37 | - * @param array $diType |
|
37 | + * @param array $diTypes |
|
38 | 38 | * @param array $specialProperties |
39 | 39 | * @param array $userDefinedFixedProperties |
40 | 40 | */ |
@@ -148,6 +148,9 @@ discard block |
||
148 | 148 | } |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param string $fixedPropertyTablePrefix |
|
153 | + */ |
|
151 | 154 | private function addTableDefinitionForFixedProperties( array $properties, $fixedPropertyTablePrefix ) { |
152 | 155 | foreach( $properties as $propertyKey => $propetyTableSuffix ) { |
153 | 156 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @since 1.9 |
65 | 65 | * |
66 | - * @param mixed $error |
|
66 | + * @param string $error |
|
67 | 67 | */ |
68 | 68 | public function addError( $error ) { |
69 | 69 | $this->errors = array_merge( (array)$error === $error ? $error : array( $error ), $this->errors ); |
@@ -239,6 +239,11 @@ discard block |
||
239 | 239 | return $this->parseFromJson( $results ); |
240 | 240 | } |
241 | 241 | |
242 | + /** |
|
243 | + * @param boolean $pipe |
|
244 | + * |
|
245 | + * @return string |
|
246 | + */ |
|
242 | 247 | private function lookAheadOnNextElement( &$params, &$pipe ) { |
243 | 248 | |
244 | 249 | $separator = ''; |
@@ -62,6 +62,9 @@ discard block |
||
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $contents |
|
67 | + */ |
|
65 | 68 | private function replaceSpaceIndent( $contents ) { |
66 | 69 | |
67 | 70 | // Change the four-space indent to a tab indent |
@@ -118,6 +121,9 @@ discard block |
||
118 | 121 | return json_encode( $contents, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ); |
119 | 122 | } |
120 | 123 | |
124 | + /** |
|
125 | + * @param string $name |
|
126 | + */ |
|
121 | 127 | private function findAndReplaceEntity( $name, &$entities ) { |
122 | 128 | |
123 | 129 | if ( !isset( $this->contents[$name] ) || $this->contents[$name] === array() ) { |
@@ -140,6 +146,10 @@ discard block |
||
140 | 146 | } |
141 | 147 | } |
142 | 148 | |
149 | + /** |
|
150 | + * @param string $name |
|
151 | + * @param string $type |
|
152 | + */ |
|
143 | 153 | private function findAndReplaceTestCases( $name, $type, &$tests ) { |
144 | 154 | |
145 | 155 | if ( !isset( $this->contents[$name] ) || $this->contents[$name] === array() ) { |
@@ -159,6 +169,10 @@ discard block |
||
159 | 169 | } |
160 | 170 | } |
161 | 171 | |
172 | + /** |
|
173 | + * @param string $path |
|
174 | + * @param string $extension |
|
175 | + */ |
|
162 | 176 | private function findFilesFor( $path, $extension ) { |
163 | 177 | |
164 | 178 | $files = array(); |
@@ -120,6 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * @since 2.2 |
122 | 122 | * |
123 | + * @param string $version |
|
123 | 124 | * @return boolean |
124 | 125 | */ |
125 | 126 | public function requiredToSkipForJsonVersion( $version ) { |
@@ -305,6 +306,11 @@ discard block |
||
305 | 306 | } ); |
306 | 307 | } |
307 | 308 | |
309 | + /** |
|
310 | + * @param string $index |
|
311 | + * |
|
312 | + * @return string |
|
313 | + */ |
|
308 | 314 | private function getFileContentsFor( $index ) { |
309 | 315 | |
310 | 316 | $contents = $this->fileReader->read(); |
@@ -125,7 +125,6 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @since 1.9.0.2 |
127 | 127 | * |
128 | - * @param string $tableName |
|
129 | 128 | * |
130 | 129 | * @return string |
131 | 130 | */ |
@@ -180,6 +179,7 @@ discard block |
||
180 | 179 | * @param $conditions |
181 | 180 | * @param array $options |
182 | 181 | * @param array $joinConditions |
182 | + * @param string $fname |
|
183 | 183 | * |
184 | 184 | * @return ResultWrapper |
185 | 185 | * @throws UnexpectedValueException |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * |
318 | 318 | * @param array $options |
319 | 319 | * |
320 | - * @return array |
|
320 | + * @return string[] |
|
321 | 321 | */ |
322 | 322 | public function makeSelectOptions( $options ) { |
323 | 323 | return DatabaseHelper::makeSelectOptions( $options ); |
@@ -351,6 +351,7 @@ discard block |
||
351 | 351 | * @note Use a blank trx profiler to ignore exceptions |
352 | 352 | * |
353 | 353 | * @since 2.4 |
354 | + * @param boolean $resetTransactionProfiler |
|
354 | 355 | */ |
355 | 356 | function resetTransactionProfiler( $resetTransactionProfiler ) { |
356 | 357 | $this->resetTransactionProfiler = $resetTransactionProfiler; |
@@ -385,6 +386,7 @@ discard block |
||
385 | 386 | |
386 | 387 | /** |
387 | 388 | * @since 2.4 |
389 | + * @param string $sql |
|
388 | 390 | */ |
389 | 391 | public function queryWithAutoCommit( $sql, $fname = __METHOD__, $ignoreException = false ) { |
390 | 392 | |
@@ -459,6 +461,8 @@ discard block |
||
459 | 461 | * @see DatabaseBase::selectField |
460 | 462 | * |
461 | 463 | * @since 1.9.2 |
464 | + * @param string $table |
|
465 | + * @param string $fieldName |
|
462 | 466 | */ |
463 | 467 | public function selectField( $table, $fieldName, $conditions = '', $fname = __METHOD__, $options = array() ) { |
464 | 468 | return $this->readConnection()->selectField( $table, $fieldName, $conditions, $fname, $options ); |
@@ -468,6 +472,7 @@ discard block |
||
468 | 472 | * @see DatabaseBase::estimateRowCount |
469 | 473 | * |
470 | 474 | * @since 2.1 |
475 | + * @param string $table |
|
471 | 476 | */ |
472 | 477 | public function estimateRowCount( $table, $vars = '*', $conditions = '', $fname = __METHOD__, $options = array() ) { |
473 | 478 | return $this->readConnection()->estimateRowCount( |