Completed
Push — master ( 30add5...f043e7 )
by mw
14s
created
src/Maintenance/DataRebuilder.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,6 +305,9 @@  discard block
 block discarded – undo
305 305
 		return true;
306 306
 	}
307 307
 
308
+	/**
309
+	 * @param double $byIdDataRebuildDispatcher
310
+	 */
308 311
 	private function doExecuteFor( $byIdDataRebuildDispatcher, &$id ) {
309 312
 
310 313
 		if ( !$this->options->has( 'ignore-exceptions' ) ) {
@@ -388,6 +391,9 @@  discard block
 block discarded – undo
388 391
 		return true;
389 392
 	}
390 393
 
394
+	/**
395
+	 * @param double $byIdDataRebuildDispatcher
396
+	 */
391 397
 	private function deleteMarkedSubjects( $byIdDataRebuildDispatcher ) {
392 398
 
393 399
 		$matches = array();
@@ -421,6 +427,9 @@  discard block
 block discarded – undo
421 427
 		$this->reportMessage( "\n\n{$matchesCount} IDs removed.\n\n" );
422 428
 	}
423 429
 
430
+	/**
431
+	 * @param string $startIdFile
432
+	 */
424 433
 	private function idFileIsWritable( $startIdFile ) {
425 434
 
426 435
 		if ( !is_writable( file_exists( $startIdFile ) ? $startIdFile : dirname( $startIdFile ) ) ) {
@@ -437,7 +446,7 @@  discard block
 block discarded – undo
437 446
 	}
438 447
 
439 448
 	/**
440
-	 * @param array $options
449
+	 * @param Options $options
441 450
 	 */
442 451
 	private function setFiltersFromOptions( Options $options ) {
443 452
 		$this->filters = array();
@@ -457,6 +466,10 @@  discard block
 block discarded – undo
457 466
 		}
458 467
 	}
459 468
 
469
+	/**
470
+	 * @param boolean $verbose
471
+	 * @param string $progress
472
+	 */
460 473
 	private function doPrintDotProgressIndicator( $verbose, $progress ) {
461 474
 
462 475
 		if ( ( $this->rebuildCount - 1 ) % 60 === 0 ) {
Please login to merge, or discard this patch.
includes/dataitems/SMW_DI_Property.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -259,6 +259,7 @@  discard block
 block discarded – undo
259 259
 	/**
260 260
 	 * @since  2.0
261 261
 	 *
262
+	 * @param string $propertyTypeId
262 263
 	 * @return self
263 264
 	 * @throws RuntimeException
264 265
 	 * @throws InvalidArgumentException
@@ -391,6 +392,7 @@  discard block
 block discarded – undo
391 392
 
392 393
 	/**
393 394
 	 * @deprecated since 2.1, use PropertyRegistry::findPropertyIdByLabel
395
+	 * @param string $label
394 396
 	 */
395 397
 	public static function findPropertyID( $label, $useAlias = true ) {
396 398
 		return PropertyRegistry::getInstance()->findPropertyIdByLabel( $label, $useAlias );
@@ -424,6 +426,9 @@  discard block
 block discarded – undo
424 426
 		PropertyRegistry::getInstance()->registerPropertyAlias( $id, $label );
425 427
 	}
426 428
 
429
+	/**
430
+	 * @param string $subobjectName
431
+	 */
427 432
 	private function newDIWikiPage( $dbkey, $subobjectName ) {
428 433
 
429 434
 		// If an inverse marker is present just omit the marker so a normal
Please login to merge, or discard this patch.
src/DataTypeRegistry.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	/**
323 323
 	 * @since 2.4
324 324
 	 *
325
-	 * @return array
325
+	 * @return string[]
326 326
 	 */
327 327
 	public function getCanonicalDatatypeLabels() {
328 328
 		return $this->canonicalLabels;
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 	 * returned for internal types without user labels (e.g. the special types
335 335
 	 * for some special properties), and for user defined types.
336 336
 	 *
337
-	 * @return array
337
+	 * @return string[]
338 338
 	 */
339 339
 	public function getKnownTypeLabels() {
340 340
 		return $this->typeLabels;
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 	/**
344 344
 	 * @since 2.1
345 345
 	 *
346
-	 * @return array
346
+	 * @return string[]
347 347
 	 */
348 348
 	public function getKnownTypeAliases() {
349 349
 		return $this->typeAliases;
Please login to merge, or discard this patch.
src/NumberFormatter.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	/**
56 56
 	 * @since 2.1
57 57
 	 *
58
-	 * @return Localizer
58
+	 * @return NumberFormatter
59 59
 	 */
60 60
 	public static function getInstance() {
61 61
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 * @since 2.4
103 103
 	 *
104 104
 	 * @param mixed $value input number
105
-	 * @param integer|false $precision
105
+	 * @param integer $precision
106 106
 	 *
107 107
 	 * @return string
108 108
 	 */
@@ -248,6 +248,10 @@  discard block
 block discarded – undo
248 248
 		return $this->decimalSeparatorInUserLanguage;
249 249
 	}
250 250
 
251
+	/**
252
+	 * @param string $decimal
253
+	 * @param string $thousand
254
+	 */
251 255
 	private function doFormatByPrecision( $value, $precision = false, $decimal, $thousand ) {
252 256
 		// Format to some level of precision; number_format does rounding and
253 257
 		// locale formatting, x and y are used temporarily since number_format
Please login to merge, or discard this patch.
src/PropertyRegistry.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	/**
124 124
 	 * @since 2.1
125 125
 	 *
126
-	 * @return array
126
+	 * @return string[]
127 127
 	 */
128 128
 	public function getKnownPropertyAliases() {
129 129
 		return $this->propertyAliasFinder->getKnownPropertyAliases();
@@ -267,6 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
 	/**
269 269
 	 * @deprecated since 2.1 use findPropertyIdByLabel instead
270
+	 * @param string $label
270 271
 	 */
271 272
 	public function findPropertyId( $label, $useAlias = true ) {
272 273
 		return $this->findPropertyIdByLabel( $label, $useAlias );
@@ -369,6 +370,9 @@  discard block
 block discarded – undo
369 370
 		\Hooks::run( 'SMW::Property::initProperties', array( $this ) );
370 371
 	}
371 372
 
373
+	/**
374
+	 * @param string|boolean $label
375
+	 */
372 376
 	private function registerPropertyLabel( $id, $label, $asCanonical = true ) {
373 377
 		$this->propertyLabelFinder->registerPropertyLabel( $id, $label, $asCanonical );
374 378
 	}
Please login to merge, or discard this patch.
src/SPARQLStore/QueryEngine/Interpreter/ValueDescriptionInterpreter.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -104,10 +104,18 @@  discard block
 block discarded – undo
104 104
 		);
105 105
 	}
106 106
 
107
+	/**
108
+	 * @param string $joinVariable
109
+	 * @param \SMW\DIProperty|null $orderByProperty
110
+	 */
107 111
 	private function createConditionForEmptyComparator( $joinVariable, $orderByProperty ) {
108 112
 		return $this->compoundConditionBuilder->newTrueCondition( $joinVariable, $orderByProperty );
109 113
 	}
110 114
 
115
+	/**
116
+	 * @param string $joinVariable
117
+	 * @param \SMW\DIProperty|null $orderByProperty
118
+	 */
111 119
 	private function createConditionForEqualityComparator( $dataItem, $property, $joinVariable, $orderByProperty ) {
112 120
 
113 121
 		$expElement = $this->exporter->getDataItemHelperExpElement( $dataItem );
@@ -153,6 +161,11 @@  discard block
 block discarded – undo
153 161
 		return $condition;
154 162
 	}
155 163
 
164
+	/**
165
+	 * @param string $joinVariable
166
+	 * @param \SMW\DIProperty|null $orderByProperty
167
+	 * @param string $comparator
168
+	 */
156 169
 	private function createConditionForRegexComparator( $dataItem, $joinVariable, $orderByProperty, $comparator ) {
157 170
 
158 171
 		if ( !$dataItem instanceof DIBlob && !$dataItem instanceof DIWikiPage && !$dataItem instanceof DIUri ) {
@@ -196,6 +209,9 @@  discard block
 block discarded – undo
196 209
 		return $condition;
197 210
 	}
198 211
 
212
+	/**
213
+	 * @param string $comparator
214
+	 */
199 215
 	private function createFilterConditionForAnyOtherComparator( $dataItem, $joinVariable, $orderByProperty, $comparator ) {
200 216
 
201 217
 		$result = new FilterCondition( '', array() );
@@ -228,6 +244,9 @@  discard block
 block discarded – undo
228 244
 		return $result;
229 245
 	}
230 246
 
247
+	/**
248
+	 * @param string $pattern
249
+	 */
231 250
 	private function createFilterConditionToMatchRegexPattern( $dataItem, &$joinVariable, $comparator, $pattern ) {
232 251
 
233 252
 		if ( $dataItem instanceof DIBlob ) {
Please login to merge, or discard this patch.
includes/export/SMW_Exporter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 * represent. Returns null if this attempt failed.
393 393
 	 *
394 394
 	 * @param SMWExpElement $expElement
395
-	 * @return SMWDataItem or null
395
+	 * @return null|DIWikiPage or null
396 396
 	 */
397 397
 	public function findDataItemForExpElement( SMWExpElement $expElement ) {
398 398
 		return self::$dataItemByExpElementMatchFinder->tryToFindDataItemForExpElement( $expElement );
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 	 * must take the type of the annotated object into account for some
430 430
 	 * reason.
431 431
 	 *
432
-	 * @param $propertyKey string the Id of the special property
432
+	 * @param string $propertyKey string the Id of the special property
433 433
 	 * @param $forNamespace integer the namespace of the page which has a value for this property
434 434
 	 * @return ExpNsResource|null
435 435
 	 */
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
 	 * elements are always preferred in query answering.
610 610
 	 *
611 611
 	 * @param $dataItem SMWDataItem
612
-	 * @return SMWExpElement or null
612
+	 * @return SMWExpLiteral|null or null
613 613
 	 */
614 614
 	static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) {
615 615
 
Please login to merge, or discard this patch.
src/Exporter/ConceptToExpDataMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 	 *
120 120
 	 * @param string &$exact
121 121
 	 *
122
-	 * @return Element|false
122
+	 * @return Element
123 123
 	 */
124 124
 	public function getExpDataFromDescription( Description $description, &$exact ) {
125 125
 
Please login to merge, or discard this patch.
includes/NamespaceManager.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param array &$globalVars
21 21
 	 * @param string|null &directory
22
+	 * @param string $directory
22 23
 	 */
23 24
 	public function __construct( &$globalVars, $directory = null ) {
24 25
 		$this->globalVars =& $globalVars;
@@ -173,12 +174,18 @@  discard block
 block discarded – undo
173 174
 
174 175
 	}
175 176
 
177
+	/**
178
+	 * @param string $element
179
+	 */
176 180
 	protected function isValidConfigurationOrSetDefault( $element, $default ) {
177 181
 		if ( !isset( $this->globalVars[$element] ) || !is_array( $this->globalVars[$element] ) ) {
178 182
 			$this->globalVars[$element] = $default;
179 183
 		}
180 184
 	}
181 185
 
186
+	/**
187
+	 * @param string $constant
188
+	 */
182 189
 	protected function isDefinedConstant( $constant ) {
183 190
 		return defined( $constant );
184 191
 	}
Please login to merge, or discard this patch.