Completed
Push — master ( 59c431...219a45 )
by mw
36:38
created
src/DataValues/MonolingualTextValue.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,6 @@  discard block
 block discarded – undo
67 67
 	/**
68 68
 	 * @see AbstractMultiValue::getProperties
69 69
 	 *
70
-	 * @param DIProperty[] $properties
71 70
 	 */
72 71
 	public function getProperties() {
73 72
 		self::$properties;
@@ -78,6 +77,7 @@  discard block
 block discarded – undo
78 77
 	 *
79 78
 	 * @param $userValue
80 79
 	 * @param string $languageCode
80
+	 * @param string $text
81 81
 	 *
82 82
 	 * @return string
83 83
 	 */
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	/**
278 278
 	 * @since 2.5
279 279
 	 *
280
-	 * @return array
280
+	 * @return string
281 281
 	 */
282 282
 	public function toArray() {
283 283
 
@@ -325,6 +325,9 @@  discard block
 block discarded – undo
325 325
 		return $list['_TEXT'] . '@' . $list['_LCODE'];
326 326
 	}
327 327
 
328
+	/**
329
+	 * @param string $value
330
+	 */
328 331
 	private function newContainerSemanticData( $value ) {
329 332
 
330 333
 		if ( $this->m_contextPage === null ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use SMW\DIProperty;
10 10
 use SMW\DIWikiPage;
11 11
 use SMW\Localizer;
12
-use SMW\StringCondition;
13 12
 use SMWContainerSemanticData as ContainerSemanticData;
14 13
 use SMWDataItem as DataItem;
15 14
 use SMWDataValue as DataValue;
Please login to merge, or discard this patch.
src/Exporter/ResourceBuilders/PreferredPropertyLabelResourceBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Exporter\ResourceBuilders;
4 4
 
5
-use SMW\Exporter\ResourceBuilder;
6 5
 use SMW\DIProperty;
7 6
 use SMWExporter as Exporter;
8 7
 use SMW\DataValueFactory;
Please login to merge, or discard this patch.
src/MediaWiki/Api/PropertyListByApiRequest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -196,6 +196,12 @@  discard block
 block discarded – undo
196 196
 		return true;
197 197
 	}
198 198
 
199
+	/**
200
+	 * @param string $property
201
+	 * @param RequestOptions $requestOptions
202
+	 *
203
+	 * @return \SMWRequestOptions|null
204
+	 */
199 205
 	private function doModifyRequestOptionsWith( $property, $requestOptions ) {
200 206
 
201 207
 		if ( $property === '' ) {
@@ -282,6 +288,9 @@  discard block
 block discarded – undo
282 288
 		);
283 289
 	}
284 290
 
291
+	/**
292
+	 * @param string $label
293
+	 */
285 294
 	private function matchPropertiesToPreferredLabelBy( $label ) {
286 295
 
287 296
 		$propertyLabelFinder = ApplicationFactory::getInstance()->newPropertyLabelFinder();
Please login to merge, or discard this patch.
src/PropertyLabelFinder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/PropertySpecificationLookup.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -346,6 +346,9 @@  discard block
 block discarded – undo
346 346
 		return $localPropertyDescription;
347 347
 	}
348 348
 
349
+	/**
350
+	 * @param DIProperty $property
351
+	 */
349 352
 	private function getPredefinedPropertyDescription( $property, $linker ) {
350 353
 
351 354
 		$description = '';
@@ -368,6 +371,9 @@  discard block
 block discarded – undo
368 371
 		return $message;
369 372
 	}
370 373
 
374
+	/**
375
+	 * @param DIProperty $property
376
+	 */
371 377
 	private function tryToFindLocalPropertyDescription( $property, $linker ) {
372 378
 
373 379
 		$text = '';
@@ -385,6 +391,9 @@  discard block
 block discarded – undo
385 391
 		return $text;
386 392
 	}
387 393
 
394
+	/**
395
+	 * @param DIProperty $property
396
+	 */
388 397
 	private function findPreferredPropertyLabel( $property ) {
389 398
 
390 399
 		$text = '';
@@ -402,6 +411,9 @@  discard block
 block discarded – undo
402 411
 		return $text;
403 412
 	}
404 413
 
414
+	/**
415
+	 * @param DIProperty $property
416
+	 */
405 417
 	private function findTextValueByLanguage( $dataItems, $property ) {
406 418
 
407 419
 		if ( $dataItems === null || $dataItems === array() ) {
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_Property.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * the provided name is not allowed. An object is returned
83 83
 	 * in any case.
84 84
 	 *
85
-	 * @param string $propertyName
85
+	 * @param string $propertyLabel
86 86
 	 *
87 87
 	 * @return SMWPropertyValue
88 88
 	 */
@@ -247,6 +247,9 @@  discard block
 block discarded – undo
247 247
 		}
248 248
 	}
249 249
 
250
+	/**
251
+	 * @param boolean $isinverse
252
+	 */
250 253
 	public function setInverse( $isinverse ) {
251 254
 		return $this->m_dataitem = new DIProperty( $this->m_dataitem->getKey(), ( $isinverse == true ) );
252 255
 	}
@@ -448,6 +451,9 @@  discard block
 block discarded – undo
448 451
 		return $this->m_dataitem->getLabel();
449 452
 	}
450 453
 
454
+	/**
455
+	 * @param string $value
456
+	 */
451 457
 	private function doNormalizeUserValue( $value ) {
452 458
 
453 459
 		if (
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 use SMW\DataValues\ValueFormatters\DataValueFormatter;
5 5
 use SMW\DataValueFactory;
6 6
 use SMW\DIProperty;
7
-use SMW\Highlighter;
8
-use SMW\Message;
9 7
 
10 8
 /**
11 9
  * Objects of this class represent properties in SMW.
Please login to merge, or discard this patch.
src/DataValues/ValueFormatters/PropertyValueFormatter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@
 block discarded – undo
128 128
 		return $highlighter->getHtml();
129 129
 	}
130 130
 
131
+	/**
132
+	 * @param string $propertyDescription
133
+	 */
131 134
 	private function canHighlight( &$propertyDescription, $linker ) {
132 135
 
133 136
 		if ( $this->dataValue->getOptionBy( PropertyValue::OPT_NO_HIGHLIGHT ) === true ) {
Please login to merge, or discard this patch.