Completed
Push — master ( 07dd29...2a8480 )
by mw
409:44 queued 374:41
created
src/Query/Result/ResultFieldMatchFinder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -156,6 +156,9 @@  discard block
 block discarded – undo
156 156
 		return $options;
157 157
 	}
158 158
 
159
+	/**
160
+	 * @param DataItem $dataItem
161
+	 */
159 162
 	private function getResultsForProperty( $dataItem ) {
160 163
 
161 164
 		$content = $this->getResultContent(
@@ -212,6 +215,9 @@  discard block
 block discarded – undo
212 215
 		return $content;
213 216
 	}
214 217
 
218
+	/**
219
+	 * @param string $parameter
220
+	 */
215 221
 	private function isMultiValueWithParameter( $parameter ) {
216 222
 		return strpos( $this->printRequest->getTypeID(), '_rec' ) !== false && $this->printRequest->getParameter( $parameter ) !== false;
217 223
 	}
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_Record.php 2 patches
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 *
60 60
 	 * @param string $value
61 61
 	 *
62
-	 * @return array
62
+	 * @return string[]
63 63
 	 */
64 64
 	public function getValuesFromString( $value ) {
65 65
 		// #664 / T17732
@@ -280,6 +280,10 @@  discard block
 block discarded – undo
280 280
 		return $result;
281 281
 	}
282 282
 
283
+	/**
284
+	 * @param integer $type
285
+	 * @param SMWDataValue $dataValue
286
+	 */
283 287
 	protected function makeValueOutputText( $type, $dataValue, $linker ) {
284 288
 		switch ( $type ) {
285 289
 			case 0:
@@ -295,6 +299,9 @@  discard block
 block discarded – undo
295 299
 		}
296 300
 	}
297 301
 
302
+	/**
303
+	 * @param string $value
304
+	 */
298 305
 	private function newContainerSemanticData( $value ) {
299 306
 
300 307
 		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
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SMW\ApplicationFactory;
6 6
 use SMW\DIProperty;
7 7
 use SMW\DIWikiPage;
8
-use SMWPropertyListValue as PropertyListValue;
9 8
 use SMWDataItem as DataItem;
10 9
 use SMWContainerSemanticData as ContainerSemanticData;
11 10
 use SMWDIContainer as DIContainer;
Please login to merge, or discard this patch.
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.
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.