Completed
Push — master ( f835ba...dee201 )
by mw
47:53 queued 08:25
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 1 patch
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.
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/ConceptCache.php 1 patch
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.
src/SQLStore/Lookup/CachedListLookup.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 *
52 52
 	 * @param ListLookup $listLookup
53 53
 	 * @param Cache $cache
54
-	 * @param stdClass $cacheOptions
54
+	 * @param \stdClass $cacheOptions
55 55
 	 */
56 56
 	public function __construct( ListLookup $listLookup, Cache $cache, \stdClass $cacheOptions ) {
57 57
 		$this->listLookup = $listLookup;
@@ -149,6 +149,10 @@  discard block
 block discarded – undo
149 149
 		$this->cache->delete( $id );
150 150
 	}
151 151
 
152
+	/**
153
+	 * @param string $key
154
+	 * @param string $optionsKey
155
+	 */
152 156
 	private function tryFetchFromCache( $key, $optionsKey ) {
153 157
 
154 158
 		if ( !$this->cache->contains( $key ) ) {
@@ -167,6 +171,11 @@  discard block
 block discarded – undo
167 171
 		return $data['list'];
168 172
 	}
169 173
 
174
+	/**
175
+	 * @param string $key
176
+	 * @param string $optionsKey
177
+	 * @param integer $time
178
+	 */
170 179
 	private function saveToCache( $key, $optionsKey, $list, $time, $ttl ) {
171 180
 
172 181
 		$this->timestamp = $time;
@@ -185,6 +194,9 @@  discard block
 block discarded – undo
185 194
 		$this->cache->save( $optionsKey, serialize( $data ), $ttl );
186 195
 	}
187 196
 
197
+	/**
198
+	 * @param string $id
199
+	 */
188 200
 	private function getCacheKey( $id ) {
189 201
 
190 202
 		$optionsKey = '';
Please login to merge, or discard this patch.