Completed
Push — master ( 5f9e66...1f3475 )
by mw
123:57 queued 89:01
created
src/PropertySpecificationLookup.php 1 patch
Doc Comments   +16 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 *
78 78
 	 * @param DIProperty $property
79 79
 	 *
80
-	 * @return false|DataItem
80
+	 * @return \SMWDataItem
81 81
 	 */
82 82
 	public function getFieldListBy( DIProperty $property ) {
83 83
 
@@ -383,6 +383,10 @@  discard block
 block discarded – undo
383 383
 		return $localPropertyDescription;
384 384
 	}
385 385
 
386
+	/**
387
+	 * @param DIProperty $property
388
+	 * @param string $languageCode
389
+	 */
386 390
 	private function getPredefinedPropertyDescription( $property, $linker, $languageCode ) {
387 391
 
388 392
 		$description = '';
@@ -411,6 +415,10 @@  discard block
 block discarded – undo
411 415
 		return $message;
412 416
 	}
413 417
 
418
+	/**
419
+	 * @param DIProperty $property
420
+	 * @param string $languageCode
421
+	 */
414 422
 	private function findLocalPropertyDescription( $property, $linker, $languageCode ) {
415 423
 
416 424
 		$text = '';
@@ -428,6 +436,10 @@  discard block
 block discarded – undo
428 436
 		return $text;
429 437
 	}
430 438
 
439
+	/**
440
+	 * @param DIProperty $property
441
+	 * @param string $languageCode
442
+	 */
431 443
 	private function findPreferredPropertyLabel( $property, $languageCode ) {
432 444
 
433 445
 		$text = '';
@@ -445,6 +457,9 @@  discard block
 block discarded – undo
445 457
 		return $text;
446 458
 	}
447 459
 
460
+	/**
461
+	 * @param DIProperty $property
462
+	 */
448 463
 	private function findTextValueByLanguage( $dataItems, $property, $languageCode ) {
449 464
 
450 465
 		if ( $dataItems === null || $dataItems === array() ) {
Please login to merge, or discard this patch.
src/SQLStore/QueryEngine/OrderConditionsComplementor.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	/**
78 78
 	 * @since 2.5
79 79
 	 *
80
-	 * @return array
80
+	 * @return string[]
81 81
 	 */
82 82
 	public function getErrors() {
83 83
 		return $this->querySegmentListBuilder->getErrors();
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
 		return $this->querySegmentListBuilder->getQuerySegmentList();
121 121
 	}
122 122
 
123
+	/**
124
+	 * @param QuerySegment $querySegment
125
+	 */
123 126
 	private function collectExtraDescriptionsFromSortKeys( $querySegment ) {
124 127
 
125 128
 		$extraDescriptions = array();
@@ -138,6 +141,10 @@  discard block
 block discarded – undo
138 141
 		return $extraDescriptions;
139 142
 	}
140 143
 
144
+	/**
145
+	 * @param string $label
146
+	 * @param string $order
147
+	 */
141 148
 	private function findExtraDescriptionBy( $querySegment, $label, $order ) {
142 149
 
143 150
 		$description = null;
@@ -171,6 +178,9 @@  discard block
 block discarded – undo
171 178
 		return $description;
172 179
 	}
173 180
 
181
+	/**
182
+	 * @param QuerySegment $querySegment
183
+	 */
174 184
 	private function addConjunctionFromExtraDescriptions( $querySegment, array $extraDescriptions ) {
175 185
 
176 186
 		$this->querySegmentListBuilder->setSortKeys(
Please login to merge, or discard this patch.
tests/phpunit/Integration/JSONScript/version2TestCaseConverter.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
 		}
63 63
 	}
64 64
 
65
+	/**
66
+	 * @param string $contents
67
+	 */
65 68
 	private function replaceSpaceIndent( $contents ) {
66 69
 
67 70
 		// Change the four-space indent to a tab indent
@@ -118,6 +121,9 @@  discard block
 block discarded – undo
118 121
 		return json_encode( $contents, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
119 122
 	}
120 123
 
124
+	/**
125
+	 * @param string $name
126
+	 */
121 127
 	private function findAndReplaceEntity( $name, &$entities ) {
122 128
 
123 129
 		if ( !isset( $this->contents[$name] ) || $this->contents[$name] === array() ) {
@@ -140,6 +146,10 @@  discard block
 block discarded – undo
140 146
 		}
141 147
 	}
142 148
 
149
+	/**
150
+	 * @param string $name
151
+	 * @param string $type
152
+	 */
143 153
 	private function findAndReplaceTestCases( $name, $type, &$tests ) {
144 154
 
145 155
 		if ( !isset( $this->contents[$name] ) || $this->contents[$name] === array() ) {
@@ -159,6 +169,10 @@  discard block
 block discarded – undo
159 169
 		}
160 170
 	}
161 171
 
172
+	/**
173
+	 * @param string $path
174
+	 * @param string $extension
175
+	 */
162 176
 	private function findFilesFor( $path, $extension ) {
163 177
 
164 178
 		$files = array();
Please login to merge, or discard this patch.
tests/phpunit/JsonTestCaseContentHandler.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 ) );
Please login to merge, or discard this 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\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;
Please login to merge, or discard this patch.
tests/phpunit/JsonTestCaseScriptRunner.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,10 +2,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Libs/Time/Timezone.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 *
186 186
 	 * @param string $identifer
187 187
 	 *
188
-	 * @return false|integer
188
+	 * @return string
189 189
 	 */
190 190
 	public static function getIdByAbbreviation( $identifer ) {
191 191
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 *
209 209
 	 * @param integer $identifer
210 210
 	 *
211
-	 * @return false|string
211
+	 * @return string
212 212
 	 */
213 213
 	public static function getTimezoneLiteralById( $identifer ) {
214 214
 
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 * @since 2.5
351 351
 	 *
352 352
 	 * @param DateTime &$dateTime
353
-	 * @param string|integer $identifer
353
+	 * @param integer $identifer
354 354
 	 *
355 355
 	 * @return string
356 356
 	 */
Please login to merge, or discard this patch.
includes/query/SMW_Query.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/phpunit/Unit/Query/Language/SomePropertyTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/DataValues/ValueValidators/UniquenessConstraintValueValidator.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -161,6 +161,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.