Completed
Push — master ( f5d374...685013 )
by mw
47:54 queued 25:05
created
src/MediaWiki/Search/Search.php 1 patch
Doc Comments   +18 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,6 +117,10 @@  discard block
 block discarded – undo
117 117
 		return $this->queryCache[$term];
118 118
 	}
119 119
 
120
+	/**
121
+	 * @param string $term
122
+	 * @param boolean $fulltext
123
+	 */
120 124
 	private function searchFallbackSearchEngine( $term, $fulltext ) {
121 125
 
122 126
 		$f = $this->getFallbackSearchEngine();
@@ -256,6 +260,10 @@  discard block
 block discarded – undo
256 260
 		$this->getFallbackSearchEngine()->delete( $id, $title );
257 261
 	}
258 262
 
263
+	/**
264
+	 * @param string $feature
265
+	 * @param string $data
266
+	 */
259 267
 	public function setFeatureData( $feature, $data ) {
260 268
 		parent::setFeatureData( $feature, $data );
261 269
 		$this->getFallbackSearchEngine()->setFeatureData( $feature, $data );
@@ -288,7 +296,7 @@  discard block
 block discarded – undo
288 296
 
289 297
 	/**
290 298
 	 * No Transformation needed. Returns term as is.
291
-	 * @param $term
299
+	 * @param string $term
292 300
 	 * @return mixed
293 301
 	 */
294 302
 	public function transformSearchTerm( $term ) {
@@ -317,16 +325,25 @@  discard block
 block discarded – undo
317 325
 	}
318 326
 
319 327
 
328
+	/**
329
+	 * @param integer $limit
330
+	 */
320 331
 	public function setLimitOffset( $limit, $offset = 0 ) {
321 332
 		parent::setLimitOffset( $limit, $offset );
322 333
 		$this->getFallbackSearchEngine()->setLimitOffset( $limit, $offset );
323 334
 	}
324 335
 
336
+	/**
337
+	 * @param integer[] $namespaces
338
+	 */
325 339
 	public function setNamespaces( $namespaces ) {
326 340
 		parent::setNamespaces( $namespaces );
327 341
 		$this->getFallbackSearchEngine()->setNamespaces( $namespaces );
328 342
 	}
329 343
 
344
+	/**
345
+	 * @param boolean $showSuggestion
346
+	 */
330 347
 	public function setShowSuggestion( $showSuggestion ) {
331 348
 		parent::setShowSuggestion( $showSuggestion );
332 349
 		$this->getFallbackSearchEngine()->setShowSuggestion( $showSuggestion );
Please login to merge, or discard this patch.
src/MediaWiki/Specials/SearchByProperty/PageBuilder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -161,6 +161,9 @@  discard block
 block discarded – undo
161 161
 		return array( str_replace( '_', ' ', $resultMessage ), $resultList, $exactCount );
162 162
 	}
163 163
 
164
+	/**
165
+	 * @param integer $exactCount
166
+	 */
164 167
 	private function getNearbyResults( $exactResults, $exactCount ) {
165 168
 
166 169
 		$resultList = '';
@@ -290,6 +293,9 @@  discard block
 block discarded – undo
290 293
 		return "<ul>$html</ul>";
291 294
 	}
292 295
 
296
+	/**
297
+	 * @param integer $exactCount
298
+	 */
293 299
 	private function canQueryNearbyResults( $exactCount ) {
294 300
 		return $exactCount < ( $this->pageRequestOptions->limit / 3 ) && $this->pageRequestOptions->nearbySearch && $this->pageRequestOptions->valueString !== '';
295 301
 	}
Please login to merge, or discard this patch.
src/MediaWiki/Specials/SearchByProperty/QueryResultLookup.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * @since 2.1
39 39
 	 *
40
-	 * @param  QueryOptions $pageRequestOptions
40
+	 * @param  PageRequestOptions $pageRequestOptions
41 41
 	 *
42 42
 	 * @return array of array(SMWWikiPageValue, SMWDataValue) with the
43 43
 	 * first being the entity, and the second the value
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * on the property, ordered, and sorted by ending with the smallest
75 75
 	 * one.
76 76
 	 *
77
-	 * @param QueryOptions $pageRequestOptions
77
+	 * @param PageRequestOptions $pageRequestOptions
78 78
 	 * @param integer $count How many entities have the exact same value on the property?
79 79
 	 * @param integer $greater Should the values be bigger? Set false for smaller values.
80 80
 	 *
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,9 +3,6 @@
 block discarded – undo
3 3
 namespace SMW\MediaWiki\Specials\SearchByProperty;
4 4
 
5 5
 use SMW\DataValueFactory;
6
-use SMW\Query\Language\SomeProperty;
7
-use SMW\Query\Language\ThingDescription;
8
-use SMW\Query\Language\ValueDescription;
9 6
 use SMW\Query\PrintRequest as PrintRequest;
10 7
 use SMW\Store;
11 8
 use SMWQuery as Query;
Please login to merge, or discard this patch.
src/ParserFunctions/InfoParserFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 	 * @param Parser $parser
23 23
 	 * @param ProcessingResult $result
24 24
 	 *
25
-	 * @return mixed
25
+	 * @return string
26 26
 	 */
27 27
 	public function handle( Parser $parser, ProcessingResult $result ) {
28 28
 		$parameters = $result->getParameters();
Please login to merge, or discard this patch.
src/PropertySpecificationChangeNotifier.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,6 @@
 block discarded – undo
54 54
 	 *
55 55
 	 * @since 2.2
56 56
 	 *
57
-	 * @param array $declarationProperties
58 57
 	 */
59 58
 	public function setPropertiesToCompare( array $propertiesToCompare ) {
60 59
 		$this->propertiesToCompare = $propertiesToCompare;
Please login to merge, or discard this patch.
src/Query/Language/ClassDescription.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -99,6 +99,10 @@
 block discarded – undo
99 99
 		return SMW_CATEGORY_QUERY;
100 100
 	}
101 101
 
102
+	/**
103
+	 * @param integer $maxsize
104
+	 * @param integer $maxdepth
105
+	 */
102 106
 	public function prune( &$maxsize, &$maxdepth, &$log ) {
103 107
 
104 108
 		if ( $maxsize >= $this->getSize() ) {
Please login to merge, or discard this patch.
src/SPARQLStore/QueryEngine/CompoundConditionBuilder.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -442,7 +442,6 @@  discard block
 block discarded – undo
442 442
 	 * Extend the given SPARQL condition by a suitable order by variable,
443 443
 	 * possibly adding conditions if required for the type of data.
444 444
 	 *
445
-	 * @param Condition $sparqlCondition condition to modify
446 445
 	 * @param string $mainVariable the variable that represents the value to be ordered
447 446
 	 * @param integer $diType DataItem type id
448 447
 	 */
@@ -487,6 +486,9 @@  discard block
 block discarded – undo
487 486
 		}
488 487
 	}
489 488
 
489
+	/**
490
+	 * @param string $propertyKey
491
+	 */
490 492
 	private function addOrderForUnknownPropertyKey( Condition &$condition, $propertyKey ) {
491 493
 
492 494
 		if ( $propertyKey === '' ) { // order by result page sortkey
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use SMW\Query\Language\Description;
12 12
 use SMW\Query\Language\SomeProperty;
13 13
 use SMW\Query\Language\ThingDescription;
14
-use SMW\SPARQLStore\HierarchyFinder;
15 14
 use SMW\SPARQLStore\QueryEngine\Condition\Condition;
16 15
 use SMW\SPARQLStore\QueryEngine\Condition\SingletonCondition;
17 16
 use SMW\SPARQLStore\QueryEngine\Condition\TrueCondition;
Please login to merge, or discard this patch.
src/SPARQLStore/QueryEngine/QueryEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -213,6 +213,9 @@
 block discarded – undo
213 213
 		return DebugOutputFormatter::formatOutputFor( 'SPARQLStore', $entries, $query );
214 214
 	}
215 215
 
216
+	/**
217
+	 * @param Condition $condition
218
+	 */
216 219
 	private function isSingletonConditionWithElementMatch( $condition ) {
217 220
 		return $condition instanceof SingletonCondition && $condition->matchElement instanceof Element;
218 221
 	}
Please login to merge, or discard this patch.
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.