@@ -221,6 +221,11 @@ |
||
221 | 221 | } ); |
222 | 222 | } |
223 | 223 | |
224 | + /** |
|
225 | + * @param string $field |
|
226 | + * @param string $internalType |
|
227 | + * @param \Closure $definition |
|
228 | + */ |
|
224 | 229 | protected function assertInternalArrayStructure( $setup, $result, $field, $internalType, $definition ) { |
225 | 230 | |
226 | 231 | if ( isset( $setup[$field] ) && $setup[$field] ) { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @param string $text |
183 | 183 | * |
184 | - * @return text |
|
184 | + * @return string |
|
185 | 185 | */ |
186 | 186 | public static function decodeSquareBracket( $text ) { |
187 | 187 | return Obfuscator::decodeSquareBracket( $text ); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * |
193 | 193 | * @param string $text |
194 | 194 | * |
195 | - * @return text |
|
195 | + * @return string |
|
196 | 196 | */ |
197 | 197 | public static function obfuscateAnnotation( $text ) { |
198 | 198 | return Obfuscator::obfuscateAnnotation( $text ); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * |
204 | 204 | * @param string $text |
205 | 205 | * |
206 | - * @return text |
|
206 | + * @return string |
|
207 | 207 | */ |
208 | 208 | public static function removeAnnotation( $text ) { |
209 | 209 | return Obfuscator::removeAnnotation( $text ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | * |
246 | 246 | * @since 1.9 |
247 | 247 | * |
248 | - * @return array |
|
248 | + * @return string[] |
|
249 | 249 | */ |
250 | 250 | protected function getModules() { |
251 | 251 | return array( |
@@ -326,6 +326,8 @@ discard block |
||
326 | 326 | * @since 1.9 |
327 | 327 | * |
328 | 328 | * @param array $properties |
329 | + * @param DIWikiPage $subject |
|
330 | + * @param string $value |
|
329 | 331 | * |
330 | 332 | * @return string |
331 | 333 | */ |
@@ -389,6 +391,10 @@ discard block |
||
389 | 391 | return $this->applicationFactory->getNamespaceExaminer()->isSemanticEnabled( $title->getNamespace() ); |
390 | 392 | } |
391 | 393 | |
394 | + /** |
|
395 | + * @param DIWikiPage $subject |
|
396 | + * @param string $value |
|
397 | + */ |
|
392 | 398 | private function getPropertyLink( $subject, $properties, $value, $valueCaption ) { |
393 | 399 | |
394 | 400 | // #1855 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @param Parser $parser |
32 | 32 | * @param ProcessingResult $result |
33 | 33 | * |
34 | - * @return mixed |
|
34 | + * @return string |
|
35 | 35 | */ |
36 | 36 | public function handle( Parser $parser, ProcessingResult $result ) { |
37 | 37 | if ( $result->hasFatal() ) { |
@@ -74,7 +74,6 @@ |
||
74 | 74 | /** |
75 | 75 | * @since 2.5 |
76 | 76 | * |
77 | - * @param integer|null $copyCount |
|
78 | 77 | */ |
79 | 78 | public function setEditRepetitionCount( $editRepetitionCount = null ) { |
80 | 79 | $this->editRepetitionCount = $editRepetitionCount; |
@@ -96,6 +96,9 @@ |
||
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $file |
|
101 | + */ |
|
99 | 102 | private function doXmlImport( $file, array $case ) { |
100 | 103 | |
101 | 104 | $this->xmlImportRunner->setFile( $file ); |
@@ -101,6 +101,9 @@ |
||
101 | 101 | ); |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param Query $query |
|
106 | + */ |
|
104 | 107 | private function doQuery( array $case, $query ) { |
105 | 108 | |
106 | 109 | $this->benchmarker->clear(); |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | */ |
32 | 32 | private $testEnvironment; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $file |
|
36 | + */ |
|
34 | 37 | public function __construct( $file = null ) { |
35 | 38 | $this->file = $file; |
36 | 39 | $this->testEnvironment = new TestEnvironment(); |
@@ -130,7 +133,7 @@ discard block |
||
130 | 133 | } |
131 | 134 | |
132 | 135 | /** |
133 | - * @return integer |
|
136 | + * @return double |
|
134 | 137 | */ |
135 | 138 | public function getElapsedImportTimeInSeconds() { |
136 | 139 | return round( $this->importTime, 7 ); |
@@ -145,6 +148,9 @@ discard block |
||
145 | 148 | return $this->requestContext; |
146 | 149 | } |
147 | 150 | |
151 | + /** |
|
152 | + * @param string $file |
|
153 | + */ |
|
148 | 154 | private function assertThatFileIsReadableOrThrowException( $file ) { |
149 | 155 | |
150 | 156 | $file = str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, $file ); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * label for printout might also be specified. |
169 | 169 | * |
170 | 170 | * @param string $value |
171 | - * @param mixed $caption |
|
171 | + * @param boolean $caption |
|
172 | 172 | */ |
173 | 173 | public function setUserValue( $value, $caption = false ) { |
174 | 174 | |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | /** |
264 | 264 | * @since 2.4 |
265 | 265 | * |
266 | - * @return DIWikiPage|null |
|
266 | + * @return SMWDIWikiPage |
|
267 | 267 | */ |
268 | 268 | public function getContextPage() { |
269 | 269 | return $this->m_contextPage; |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * |
306 | 306 | * @param string $key |
307 | 307 | * |
308 | - * @return mixed|false |
|
308 | + * @return string|false |
|
309 | 309 | */ |
310 | 310 | public function getOption( $key ) { |
311 | 311 | |
@@ -340,7 +340,6 @@ discard block |
||
340 | 340 | /** |
341 | 341 | * @since 2.4 |
342 | 342 | * |
343 | - * @param string $caption |
|
344 | 343 | */ |
345 | 344 | public function getCaption() { |
346 | 345 | return $this->m_caption; |
@@ -427,7 +426,6 @@ discard block |
||
427 | 426 | * |
428 | 427 | * @param $parameters |
429 | 428 | * @param integer|null $type |
430 | - * @param integer|null $language |
|
431 | 429 | */ |
432 | 430 | public function addErrorMsg( $parameters, $type = null ) { |
433 | 431 | $this->mErrors[Message::getHash( $parameters, $type )] = Message::encode( $parameters, $type ); |
@@ -486,7 +484,7 @@ discard block |
||
486 | 484 | * |
487 | 485 | * @param string $value |
488 | 486 | * |
489 | - * @return Description |
|
487 | + * @return SMW\Query\Language\Description |
|
490 | 488 | * @throws InvalidArgumentException |
491 | 489 | */ |
492 | 490 | public function getQueryDescription( $value ) { |
@@ -507,7 +505,7 @@ discard block |
||
507 | 505 | * |
508 | 506 | * @since 2.4 |
509 | 507 | * |
510 | - * @return DataValueFormatter |
|
508 | + * @return SMW\DataValues\ValueFormatters\DataValueFormatter |
|
511 | 509 | */ |
512 | 510 | public function getDataValueFormatter() { |
513 | 511 | return ValueFormatterRegistry::getInstance()->getDataValueFormatterFor( $this ); |
@@ -591,6 +589,7 @@ discard block |
||
591 | 589 | * |
592 | 590 | * The parameter $linked controls linking of values such as titles and should |
593 | 591 | * be non-NULL and non-false if this is desired. |
592 | + * @return string |
|
594 | 593 | */ |
595 | 594 | abstract public function getLongWikiText( $linked = null ); |
596 | 595 |
@@ -210,6 +210,9 @@ discard block |
||
210 | 210 | return $highlighter->getHtml(); |
211 | 211 | } |
212 | 212 | |
213 | + /** |
|
214 | + * @param string $propertyDescription |
|
215 | + */ |
|
213 | 216 | private function canHighlight( &$propertyDescription, $linker ) { |
214 | 217 | |
215 | 218 | if ( $this->dataValue->getOption( PropertyValue::OPT_NO_HIGHLIGHT ) === true ) { |
@@ -262,6 +265,9 @@ discard block |
||
262 | 265 | return $preferredLabelMarker; |
263 | 266 | } |
264 | 267 | |
268 | + /** |
|
269 | + * @param \SMWDataItem $property |
|
270 | + */ |
|
265 | 271 | private function findTranslatedPropertyLabel( $property ) { |
266 | 272 | |
267 | 273 | // User-defined properties don't have any translatable label (this is |