Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
src/SPARQLStore/QueryEngine/RepositoryResult.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	/**
74 74
 	 * Get the number of rows in the result object.
75 75
 	 *
76
-	 * @return interger number of result rows
76
+	 * @return integer number of result rows
77 77
 	 */
78 78
 	public function numRows() {
79 79
 		return count( $this->data );
Please login to merge, or discard this patch.
src/SPARQLStore/QueryEngine/XmlResponseParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@
 block discarded – undo
126 126
 		);
127 127
 	}
128 128
 
129
+	/**
130
+	 * @param string $xmlResultData
131
+	 */
129 132
 	private function parseXml( $xmlResultData ) {
130 133
 		return xml_parse( $this->parser, $xmlResultData, true );
131 134
 	}
Please login to merge, or discard this patch.
src/SPARQLStore/RedirectLookup.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	 * @since 1.6
53 53
 	 *
54 54
 	 * @param ExpNsResource $expNsResource string URI to check
55
-	 * @param boolean $existsthat is set to true if $expNsResource is in the
55
+	 * @param boolean|null $exists is set to true if $expNsResource is in the
56 56
 	 * store; always false for blank nodes; always true for subobjects
57 57
 	 *
58 58
 	 * @return ExpNsResource
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace SMW\SPARQLStore;
4 4
 
5 5
 use RuntimeException;
6
-use Onoi\Cache\Cache;
7
-use SMW\ApplicationFactory;
8 6
 use SMW\InMemoryPoolCache;
9 7
 use SMW\DIWikiPage;
10 8
 use SMWExpNsResource as ExpNsResource;
Please login to merge, or discard this patch.
src/SPARQLStore/RepositoryConnector/FourstoreHttpRepositoryConnector.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SMW\SPARQLStore\Exception\BadHttpDatabaseResponseException;
6 6
 use SMW\SPARQLStore\QueryEngine\RepositoryResult;
7 7
 use SMW\SPARQLStore\QueryEngine\XmlResponseParser;
8
-use SMWSparqlResultParser as SparqlResultParser;
9 8
 use SMWTurtleSerializer as TurtleSerializer;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
src/SPARQLStore/RepositoryConnector/GenericHttpRepositoryConnector.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * rdfs, property, xsd, so these do not have to be included in
133 133
 	 * $extraNamespaces.
134 134
 	 *
135
-	 * @param $vars mixed array or string, field name(s) to be retrieved, can be '*'
135
+	 * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*'
136 136
 	 * @param $where string WHERE part of the query, without surrounding { }
137 137
 	 * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' )
138 138
 	 * @param $extraNamespaces array (associative) of namespaceId => namespaceUri
@@ -549,8 +549,8 @@  discard block
 block discarded – undo
549 549
 	}
550 550
 
551 551
 	/**
552
-	 * @param $endpoint string URL of endpoint that was used
553
-	 * @param $sparql string query that caused the problem
552
+	 * @param string $endpoint string URL of endpoint that was used
553
+	 * @param string $sparql string query that caused the problem
554 554
 	 */
555 555
 	protected function mapHttpRequestError( $endpoint, $sparql ) {
556 556
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 	 *
567 567
 	 * @param integer $timeout
568 568
 	 *
569
-	 * @return SparqlDatabase
569
+	 * @return GenericHttpRepositoryConnector
570 570
 	 */
571 571
 	public function setConnectionTimeoutInSeconds( $timeout = 10 ) {
572 572
 		$this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout );
Please login to merge, or discard this patch.
src/SPARQLStore/SPARQLStore.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
 	 *
404 404
 	 * @param string $connectionTypeId
405 405
 	 *
406
-	 * @return mixed
406
+	 * @return RepositoryConnection
407 407
 	 */
408 408
 	public function getConnection( $connectionTypeId = 'sparql' ) {
409 409
 
Please login to merge, or discard this patch.
src/SPARQLStore/TurtleTriplesBuilder.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	/**
71 71
 	 * @since 2.3
72 72
 	 *
73
-	 * @param integer $chunkSize
73
+	 * @param integer $triplesChunkSize
74 74
 	 */
75 75
 	public function setTriplesChunkSize( $triplesChunkSize ) {
76 76
 		$this->triplesChunkSize = (int)$triplesChunkSize;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	/**
149 149
 	 * @since 2.0
150 150
 	 *
151
-	 * @return boolean
151
+	 * @return null|boolean
152 152
 	 */
153 153
 	public function hasTriplesForUpdate() {
154 154
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * @since 2.0
164 164
 	 *
165
-	 * @return boolean
165
+	 * @return boolean|null
166 166
 	 */
167 167
 	public static function reset() {
168 168
 		TurtleSerializer::reset();
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 	 * @since 1.6
306 306
 	 * @param ExpData $expData object containing the update data
307 307
 	 * @param $auxiliaryExpData array of SMWExpData
308
-	 * @param $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject
308
+	 * @param boolean $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject
309 309
 	 *
310 310
 	 * @return ExpData
311 311
 	 */
Please login to merge, or discard this patch.
src/SQLStore/ByIdDataRebuildDispatcher.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	/**
90 90
 	 * @since 2.3
91 91
 	 *
92
-	 * @param array|false $namespaces
92
+	 * @param boolean $namespaces
93 93
 	 */
94 94
 	public function setNamespacesTo( $namespaces ) {
95 95
 		$this->namespaces = $namespaces;
@@ -210,6 +210,7 @@  discard block
 block discarded – undo
210 210
 	/**
211 211
 	 * @param integer $id
212 212
 	 * @param UpdateJob[] &$updatejobs
213
+	 * @param boolean $emptyrange
213 214
 	 */
214 215
 	private function createUpdateJobsForSmwIdRange( $id, &$updatejobs, &$emptyrange ) {
215 216
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,8 @@
 block discarded – undo
5 5
 use SMW\SemanticData;
6 6
 use SMW\DIWikiPage;
7 7
 use SMW\DIProperty;
8
-use SMW\Store;
9 8
 use SMW\MediaWiki\Jobs\UpdateJob;
10 9
 use SMW\MediaWiki\Jobs\JobBase;
11
-
12 10
 use Title;
13 11
 use Hooks;
14 12
 
Please login to merge, or discard this patch.
src/SQLStore/ConceptCache.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	 *
62 62
 	 * @since 1.8
63 63
 	 * @param $concept Title
64
-	 * @return array of error strings (empty if no errors occurred)
64
+	 * @return string[] of error strings (empty if no errors occurred)
65 65
 	 */
66 66
 	public function refreshConceptCache( Title $concept ) {
67 67
 		$errors = $this->refresh( $concept );
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,9 +5,6 @@
 block discarded – undo
5 5
 use SMW\DIConcept;
6 6
 use SMW\DIProperty;
7 7
 use SMW\DIWikiPage;
8
-use SMWDataItem;
9
-use SMWQuery;
10
-use SMWQueryParser;
11 8
 use SMWSQLStore3;
12 9
 use SMWWikiPageValue;
13 10
 use Title;
Please login to merge, or discard this patch.