Completed
Push — master ( 5f9e66...1f3475 )
by mw
123:57 queued 89:01
created
tests/phpunit/Unit/SPARQLStore/RepositoryRedirectLookupTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -243,6 +243,9 @@
 block discarded – undo
243 243
 		$this->assertFalse( $exists );
244 244
 	}
245 245
 
246
+	/**
247
+	 * @return \SMW\SPARQLStore\RepositoryConnection
248
+	 */
246 249
 	private function createRepositoryConnectionMockToUse( $listReturnValue ) {
247 250
 
248 251
 		$repositoryResult = $this->getMockBuilder( '\SMW\SPARQLStore\QueryEngine\RepositoryResult' )
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 SMWExpLiteral as ExpLiteral;
10 10
 use SMWExpNsResource as ExpNsResource;
11 11
 use SMWExporter as Exporter;
12
-use SMWExpResource as ExpResource;
13 12
 
14 13
 /**
15 14
  * @covers \SMW\SPARQLStore\RepositoryRedirectLookup
Please login to merge, or discard this patch.
QueryEngine/DescriptionInterpreters/ConceptDescriptionInterpreter.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -118,6 +118,10 @@
 block discarded – undo
118 118
 		return $description;
119 119
 	}
120 120
 
121
+	/**
122
+	 * @param DIWikiPage $concept
123
+	 * @param Description $description
124
+	 */
121 125
 	private function findCircularDescription( $concept, $description ) {
122 126
 
123 127
 		if ( $description instanceof ConceptDescription ) {
Please login to merge, or discard this patch.
QueryEngine/DescriptionInterpreters/ConceptDescriptionInterpreter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -158,6 +158,9 @@
 block discarded – undo
158 158
 		);
159 159
 	}
160 160
 
161
+	/**
162
+	 * @param Description $description
163
+	 */
161 164
 	private function findCircularDescription( $concept, &$description ) {
162 165
 
163 166
 		if ( $description instanceof ConceptDescription ) {
Please login to merge, or discard this patch.
src/SPARQLStore/RepositoryConnectors/GenericHttpRepositoryConnector.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * rdfs, property, xsd, so these do not have to be included in
150 150
 	 * $extraNamespaces.
151 151
 	 *
152
-	 * @param $vars mixed array or string, field name(s) to be retrieved, can be '*'
152
+	 * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*'
153 153
 	 * @param $where string WHERE part of the query, without surrounding { }
154 154
 	 * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' )
155 155
 	 * @param $extraNamespaces array (associative) of namespaceId => namespaceUri
@@ -566,8 +566,8 @@  discard block
 block discarded – undo
566 566
 	}
567 567
 
568 568
 	/**
569
-	 * @param $endpoint string URL of endpoint that was used
570
-	 * @param $sparql string query that caused the problem
569
+	 * @param string|false $endpoint string URL of endpoint that was used
570
+	 * @param string $sparql string query that caused the problem
571 571
 	 */
572 572
 	protected function mapHttpRequestError( $endpoint, $sparql ) {
573 573
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 	 *
584 584
 	 * @param integer $timeout
585 585
 	 *
586
-	 * @return SparqlDatabase
586
+	 * @return GenericHttpRepositoryConnector
587 587
 	 */
588 588
 	public function setConnectionTimeoutInSeconds( $timeout = 10 ) {
589 589
 		$this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout );
Please login to merge, or discard this patch.
includes/articlepages/SMW_PropertyPage.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -162,6 +162,10 @@
 block discarded – undo
162 162
 	 * Get the HTML for displaying subproperties of this property. This list
163 163
 	 * is usually short and we implement no additional navigation.
164 164
 	 *
165
+	 * @param DIProperty $property
166
+	 * @param RequestOptions $requestOptions
167
+	 * @param integer $listLimit
168
+	 * @param string $header
165 169
 	 * @return string
166 170
 	 */
167 171
 	protected function getPropertyList( $property, $requestOptions, $listLimit, $header ) {
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\Localizer;
6 6
 use SMW\RequestOptions;
7 7
 use SMW\StringCondition;
8
-use SMW\PropertyRegistry;
9 8
 use SMWDataValue as DataValue;
10 9
 use SMW\DataValues\ValueFormatters\DataValueFormatter;
11 10
 use SMW\DIProperty;
Please login to merge, or discard this patch.
tests/phpunit/Integration/JSONScript/ParserTestCaseProcessor.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -46,6 +46,10 @@
 block discarded – undo
46 46
 	 * @param SemanticDataValidator
47 47
 	 * @param IncomingSemanticDataValidator
48 48
 	 * @param StringValidator
49
+	 * @param \SMW\Store $store
50
+	 * @param \SMW\Tests\Utils\Validators\SemanticDataValidator $semanticDataValidator
51
+	 * @param \SMW\Tests\Utils\Validators\IncomingSemanticDataValidator $incomingSemanticDataValidator
52
+	 * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator
49 53
 	 */
50 54
 	public function __construct( $store, $semanticDataValidator, $incomingSemanticDataValidator, $stringValidator ) {
51 55
 		$this->store = $store;
Please login to merge, or discard this patch.
includes/SemanticData.php 2 patches
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;
4 4
 
5
-use MWException;
6 5
 use SMWContainerSemanticData;
7 6
 use SMWDataItem;
8 7
 use SMWDataValue;
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	 * output, then the Semdata container will at least look as if properly
180 180
 	 * initialised (though empty).
181 181
 	 *
182
-	 * @return array
182
+	 * @return string[]
183 183
 	 */
184 184
 	public function __sleep() {
185 185
 		return array( 'mSubject', 'mPropVals', 'mProperties', 'subSemanticData', 'mHasVisibleProps', 'mHasVisibleSpecs', 'options' );
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	 *
239 239
 	 * @param string $key
240 240
 	 *
241
-	 * @return mixed
241
+	 * @return string|null
242 242
 	 */
243 243
 	public function getOption( $key ) {
244 244
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 *
314 314
 	 * @since 1.8
315 315
 	 *
316
-	 * @return ContainerSemanticData[]
316
+	 * @return SemanticData[]
317 317
 	 */
318 318
 	public function getSubSemanticData() {
319 319
 
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 	 * Store a value for a given property identified by its text label
432 432
 	 * (without namespace prefix).
433 433
 	 *
434
-	 * @param $propertyName string
434
+	 * @param string $propertyName string
435 435
 	 * @param $dataItem SMWDataItem
436 436
 	 */
437 437
 	public function addPropertyValue( $propertyName, SMWDataItem $dataItem ) {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
 	 * @see SubSemanticData::hasSubSemanticData
655 655
 	 * @since 1.9
656 656
 	 *
657
-	 * @param string $subobjectName|null
657
+	 * @param string $subobjectName
658 658
 	 *
659 659
 	 * @return boolean
660 660
 	 */
Please login to merge, or discard this patch.
src/SQLStore/PropertyStatisticsTable.php 2 patches
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\SQLStore;
4 4
 
5
-use MWException;
6 5
 use SMW\MediaWiki\Database;
7 6
 use SMW\Store\PropertyStatisticsStore;
8 7
 use SMW\SQLStore\Exception\PropertyStatisticsInvalidArgumentException;
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	 *
247 247
 	 * @since 1.9
248 248
 	 *
249
-	 * @param array $propertyIds
249
+	 * @param integer[] $propertyIds
250 250
 	 *
251 251
 	 * @return array
252 252
 	 */
@@ -294,6 +294,9 @@  discard block
 block discarded – undo
294 294
 		);
295 295
 	}
296 296
 
297
+	/**
298
+	 * @param string $message
299
+	 */
297 300
 	private function log( $message, $context = array() ) {
298 301
 
299 302
 		if ( $this->logger === null ) {
Please login to merge, or discard this patch.
ResourceBuilders/UniquenessConstraintPropertyValueResourceBuilder.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,10 @@
 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
-use SMW\DataValueFactory;
9 7
 use SMWDataItem as DataItem;
10 8
 use SMWExpData as ExpData;
11
-use SMWExpLiteral as ExpLiteral;
12 9
 
13 10
 /**
14 11
  * @private
Please login to merge, or discard this patch.