Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
tests/phpunit/Unit/MediaWiki/Api/BrowseBySubjectTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -221,6 +221,11 @@
 block discarded – undo
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] ) {
Please login to merge, or discard this patch.
src/InTextAnnotationParser.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/ParserFunctions/InfoParserFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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() ) {
Please login to merge, or discard this patch.
tests/phpunit/Benchmark/PageEditCopyBenchmarkRunner.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/phpunit/Benchmark/PageImportBenchmarkRunner.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
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 );
Please login to merge, or discard this patch.
tests/phpunit/Benchmark/QueryBenchmarkRunner.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -101,6 +101,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/phpunit/Utils/Runners/XmlImportRunner.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.
includes/datavalues/SMW_DataValue.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DataValues/ValueFormatters/PropertyValueFormatter.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -210,6 +210,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.