@@ -117,7 +117,6 @@ discard block |
||
117 | 117 | * @since 2.5 |
118 | 118 | * |
119 | 119 | * @param array $page |
120 | - * @param integer $defaultNamespace |
|
121 | 120 | */ |
122 | 121 | public function createPage( array $page, $namespace ) { |
123 | 122 | |
@@ -176,6 +175,10 @@ discard block |
||
176 | 175 | } |
177 | 176 | |
178 | 177 | // http://php.net/manual/en/function.file-get-contents.php |
178 | + |
|
179 | + /** |
|
180 | + * @param string $file |
|
181 | + */ |
|
179 | 182 | private function getFileContentsWithEncodingDetection( $file ) { |
180 | 183 | $content = file_get_contents( $file ); |
181 | 184 | return mb_convert_encoding( $content, 'UTF-8', mb_detect_encoding( $content, 'UTF-8, ISO-8859-1, ISO-8859-2', true ) ); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Tests; |
4 | 4 | |
5 | -use SMW\ApplicationFactory; |
|
6 | 5 | use SMW\Message; |
7 | 6 | use SMW\Tests\Utils\File\LocalFileUpload; |
8 | 7 | use SMW\Tests\Utils\PageCreator; |
@@ -178,7 +178,7 @@ |
||
178 | 178 | /** |
179 | 179 | * @since 2.2 |
180 | 180 | * |
181 | - * @param mixed $key |
|
181 | + * @param string $key |
|
182 | 182 | * @param mixed $value |
183 | 183 | */ |
184 | 184 | protected function changeGlobalSettingTo( $key, $value ) { |
@@ -2,10 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Tests; |
4 | 4 | |
5 | -use SMW\ApplicationFactory; |
|
6 | 5 | use SMW\Tests\Utils\UtilityFactory; |
7 | -use SMW\Message; |
|
8 | -use Title; |
|
9 | 6 | |
10 | 7 | /** |
11 | 8 | * The JsonTestCaseScriptRunner is a convenience provider for `Json` formatted |
@@ -228,6 +228,9 @@ discard block |
||
228 | 228 | $this->errors = array_merge( $this->errors, $errors ); |
229 | 229 | } |
230 | 230 | |
231 | + /** |
|
232 | + * @param string $querystring |
|
233 | + */ |
|
231 | 234 | public function setQueryString( $querystring ) { |
232 | 235 | $this->queryString = $querystring; |
233 | 236 | } |
@@ -322,7 +325,7 @@ discard block |
||
322 | 325 | * |
323 | 326 | * @param integer $limit |
324 | 327 | * |
325 | - * @return Query |
|
328 | + * @return SMWQuery |
|
326 | 329 | */ |
327 | 330 | public function setUnboundLimit( $limit ) { |
328 | 331 | $this->limit = (int)$limit; |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use SMW\Query\Language\SomeProperty; |
9 | 9 | use SMW\Query\Language\ThingDescription; |
10 | 10 | use SMW\Query\Language\ValueDescription; |
11 | -use SMW\Query\Language\Conjunction; |
|
12 | 11 | |
13 | 12 | /** |
14 | 13 | * @covers \SMW\Query\Language\SomeProperty |
@@ -161,6 +161,9 @@ discard block |
||
161 | 161 | return $dataValue instanceof DataValue && $dataValue->getProperty() !== null && $dataValue->getContextPage() !== null && $dataValue->isEnabledFeature( SMW_DV_PVUC ); |
162 | 162 | } |
163 | 163 | |
164 | + /** |
|
165 | + * @param string $hash |
|
166 | + */ |
|
164 | 167 | private function tryFindMatchResultFor( $hash, $dataValue ) { |
165 | 168 | |
166 | 169 | $descriptionFactory = $this->queryFactory->newDescriptionFactory(); |
@@ -209,6 +212,9 @@ discard block |
||
209 | 212 | return $page; |
210 | 213 | } |
211 | 214 | |
215 | + /** |
|
216 | + * @param string $valueHash |
|
217 | + */ |
|
212 | 218 | private function isKnownBy( $valueHash, $dataValue ) { |
213 | 219 | |
214 | 220 | $contextPage = $dataValue->getContextPage(); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param string $caption The label for the link. |
78 | 78 | * @param string $target The actual link target. |
79 | - * @param mixed $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
79 | + * @param string|false $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
80 | 80 | * @param array $params Array of parameters, format $name => $value, if any. |
81 | 81 | * |
82 | 82 | * @return SMWInfolink |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @param string $caption The label for the link. |
127 | 127 | * @param string $subject |
128 | - * @param string $propertyName |
|
129 | - * @param mixed $style CSS class of a span to embed the link into, or false if no extra style is required. |
|
128 | + * @param string $propertyname |
|
129 | + * @param string $style CSS class of a span to embed the link into, or false if no extra style is required. |
|
130 | 130 | * |
131 | 131 | * @return SMWInfolink |
132 | 132 | */ |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @param string $caption The label for the link. |
147 | 147 | * @param string $titleText |
148 | - * @param mixed $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
148 | + * @param string $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
149 | 149 | * |
150 | 150 | * @return SMWInfolink |
151 | 151 | */ |
@@ -188,6 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | /** |
190 | 190 | * Change the link text. |
191 | + * @param false|string $caption |
|
191 | 192 | */ |
192 | 193 | public function setCaption( $caption ) { |
193 | 194 | $this->mCaption = $caption; |
@@ -195,6 +196,7 @@ discard block |
||
195 | 196 | |
196 | 197 | /** |
197 | 198 | * Change the link's CSS class. |
199 | + * @param string $style |
|
198 | 200 | */ |
199 | 201 | public function setStyle( $style ) { |
200 | 202 | $this->mStyle = $style; |
@@ -126,7 +126,6 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @since 1.9.0.2 |
128 | 128 | * |
129 | - * @param string $tableName |
|
130 | 129 | * |
131 | 130 | * @return string |
132 | 131 | */ |
@@ -181,6 +180,7 @@ discard block |
||
181 | 180 | * @param $conditions |
182 | 181 | * @param array $options |
183 | 182 | * @param array $joinConditions |
183 | + * @param string $fname |
|
184 | 184 | * |
185 | 185 | * @return ResultWrapper |
186 | 186 | * @throws UnexpectedValueException |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | * |
343 | 343 | * @param array $options |
344 | 344 | * |
345 | - * @return array |
|
345 | + * @return string[] |
|
346 | 346 | */ |
347 | 347 | public function makeSelectOptions( $options ) { |
348 | 348 | return DatabaseHelper::makeSelectOptions( $this, $options ); |
@@ -376,6 +376,7 @@ discard block |
||
376 | 376 | * @note Use a blank trx profiler to ignore exceptions |
377 | 377 | * |
378 | 378 | * @since 2.4 |
379 | + * @param boolean $resetTransactionProfiler |
|
379 | 380 | */ |
380 | 381 | function resetTransactionProfiler( $resetTransactionProfiler ) { |
381 | 382 | $this->resetTransactionProfiler = $resetTransactionProfiler; |
@@ -471,6 +472,8 @@ discard block |
||
471 | 472 | * @see DatabaseBase::selectField |
472 | 473 | * |
473 | 474 | * @since 1.9.2 |
475 | + * @param string $table |
|
476 | + * @param string $fieldName |
|
474 | 477 | */ |
475 | 478 | public function selectField( $table, $fieldName, $conditions = '', $fname = __METHOD__, $options = array() ) { |
476 | 479 | return $this->readConnection()->selectField( $table, $fieldName, $conditions, $fname, $options ); |
@@ -480,6 +483,7 @@ discard block |
||
480 | 483 | * @see DatabaseBase::estimateRowCount |
481 | 484 | * |
482 | 485 | * @since 2.1 |
486 | + * @param string $table |
|
483 | 487 | */ |
484 | 488 | public function estimateRowCount( $table, $vars = '*', $conditions = '', $fname = __METHOD__, $options = array() ) { |
485 | 489 | return $this->readConnection()->estimateRowCount( |
@@ -18,7 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * @since 2.5 |
20 | 20 | * |
21 | - * @param Query|null $query |
|
22 | 21 | * |
23 | 22 | * @return string |
24 | 23 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\MediaWiki\Specials\Ask; |
4 | 4 | |
5 | 5 | use SMW\ProcessingErrorMsgHandler; |
6 | -use SMW\Message; |
|
7 | 6 | use SMWQuery as Query; |
8 | 7 | use Html; |
9 | 8 |
@@ -123,6 +123,10 @@ |
||
123 | 123 | return $query; |
124 | 124 | } |
125 | 125 | |
126 | + /** |
|
127 | + * @param Description $description |
|
128 | + * @param QuerySegment $query |
|
129 | + */ |
|
126 | 130 | private function addFulltextSearchCondition( $description, $query, $comparator, &$value ) { |
127 | 131 | |
128 | 132 | // Uses ~~ wide proximity? |