Completed
Push — master ( 53734b...8915cd )
by Jeroen De
02:42
created
SCQ_CompoundQueryApi.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * @codeCoverageIgnore
63 63
 	 * @see ApiBase::getDescription
64 64
 	 *
65
-	 * @return array
65
+	 * @return string[]
66 66
 	 */
67 67
 	public function getDescription() {
68 68
 		return array(
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * @codeCoverageIgnore
75 75
 	 * @see ApiBase::getExamples
76 76
 	 *
77
-	 * @return array
77
+	 * @return string[]
78 78
 	 */
79 79
 	protected function getExamples() {
80 80
 		return array(
Please login to merge, or discard this patch.
SCQ_QueryProcessor.php 2 patches
Braces   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,9 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
 				if ( $c == '[' ) {
146 146
 					$uncompleted_square_brackets++;
147
-				}
148
-
149
-				elseif ( $c == ']' ) {
147
+				} elseif ( $c == ']' ) {
150 148
 					$uncompleted_square_brackets--;
151 149
 				}
152 150
 			}
@@ -240,8 +238,7 @@  discard block
 block discarded – undo
240 238
 			foreach ( $params as $param ) {
241 239
 				$parameters[$param->getName()] = $param->getValue();
242 240
 			}
243
-		}
244
-		else {
241
+		} else {
245 242
 			$parameters = $params;
246 243
 		}
247 244
 
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 * 
124 124
 	 * @param string $param
125 125
 	 * 
126
-	 * @return array
126
+	 * @return string[]
127 127
 	 */
128 128
 	protected static function getSubParams( $param ) {
129 129
 		$sub_params = array();
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 * Combine two arrays of SMWWikiPageValue objects into one
172 172
 	 * 
173 173
 	 * @param array $result1
174
-	 * @param array $result2
174
+	 * @param SMWDIWikiPage[] $result2
175 175
 	 * 
176 176
 	 * @return array
177 177
 	 */
@@ -195,6 +195,9 @@  discard block
 block discarded – undo
195 195
 		return $result1;
196 196
 	}
197 197
 
198
+	/**
199
+	 * @param SMW\Query\PrintRequest[] $printRequests2
200
+	 */
198 201
 	protected static function mergeSMWPrintRequests( $printRequests1, $printRequests2 ) {
199 202
 		$existingPrintoutLabels = array();
200 203
 		foreach ( $printRequests1 as $p1 ) {
@@ -211,7 +214,7 @@  discard block
 block discarded – undo
211 214
 	}
212 215
 
213 216
 	/**
214
-	 * @param $querystring
217
+	 * @param string $querystring
215 218
 	 * @param array $params
216 219
 	 * @param $extraPrintouts
217 220
 	 * @param $outputMode
@@ -256,7 +259,7 @@  discard block
 block discarded – undo
256 259
 	 * 
257 260
 	 * @param SCQQueryResult $res
258 261
 	 * @param array $params These need to be the result of a list fed to getProcessedParams as of SMW 1.6.2
259
-	 * @param $outputmode
262
+	 * @param integer $outputmode
260 263
 	 * @param $context
261 264
 	 * @param string $format
262 265
 	 * 
Please login to merge, or discard this patch.
SemanticCompoundQueries.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
15 15
  * @defgroup SemanticCompoundQueries SemanticCompoundQueries
16 16
  */
17 17
 
18
-if ( !defined( 'MEDIAWIKI' ) ) die();
18
+if ( !defined( 'MEDIAWIKI' ) ) {
19
+	die();
20
+}
19 21
 
20 22
 define( 'SCQ_VERSION', '0.4.1' );
21 23
 
Please login to merge, or discard this patch.