Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
src/MediaWiki/Renderer/HtmlFormRenderer.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,7 +182,6 @@  discard block
 block discarded – undo
182 182
 	/**
183 183
 	 * @since 2.1
184 184
 	 *
185
-	 * @param string $description
186 185
 	 * @param array $attributes
187 186
 	 *
188 187
 	 * @return HtmlFormRenderer
@@ -217,8 +216,8 @@  discard block
 block discarded – undo
217 216
 	/**
218 217
 	 * @since 2.1
219 218
 	 *
220
-	 * @param $level
221
-	 * @param $text
219
+	 * @param string $level
220
+	 * @param string $text
222 221
 	 *
223 222
 	 * @return HtmlFormRenderer
224 223
 	 */
@@ -403,6 +402,8 @@  discard block
 block discarded – undo
403 402
 	 * @param integer $limit,
404 403
 	 * @param integer $offset,
405 404
 	 * @param integer $count,
405
+	 * @param integer $limit
406
+	 * @param integer $offset
406 407
 	 *
407 408
 	 * @return HtmlFormRenderer
408 409
 	 */
Please login to merge, or discard this patch.
src/MediaWiki/Renderer/HtmlTableRenderer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 *
86 86
 	 * @param boolean $transpose
87 87
 	 *
88
-	 * @return TableBuilder
88
+	 * @return HtmlTableRenderer
89 89
 	 */
90 90
 	public function transpose( $transpose = true ) {
91 91
 		$this->transpose = $transpose;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @param string $content
127 127
 	 * @param array $attributes
128 128
 	 *
129
-	 * @return TableBuilder
129
+	 * @return HtmlTableRenderer
130 130
 	 */
131 131
 	public function addCell( $content = '', $attributes = array() ) {
132 132
 		if ( $content !== '' ) {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * @param string $content
144 144
 	 * @param array $attributes
145 145
 	 *
146
-	 * @return TableBuilder
146
+	 * @return HtmlTableRenderer
147 147
 	 */
148 148
 	public function addHeader( $content = '', $attributes = array() ) {
149 149
 		if ( $content !== '' ) {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 *
168 168
 	 * @param array $attributes
169 169
 	 *
170
-	 * @return TableBuilder
170
+	 * @return HtmlTableRenderer
171 171
 	 */
172 172
 	public function addRow( $attributes = array() ) {
173 173
 		if ( $this->tableCells !== array() ) {
Please login to merge, or discard this patch.
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 1 patch
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.
src/MediaWiki/Specials/SpecialDeferredRequestDispatcher.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -71,6 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
 	/**
73 73
 	 * @see SpecialPage::execute
74
+	 * @param string $query
74 75
 	 */
75 76
 	public function execute( $query ) {
76 77
 
@@ -116,6 +117,9 @@  discard block
 block discarded – undo
116 117
 		return true;
117 118
 	}
118 119
 
120
+	/**
121
+	 * @param string $header
122
+	 */
119 123
 	private function modifyHttpHeader( $header, $message = '' ) {
120 124
 
121 125
 		if ( !$this->allowedToModifyHttpHeader ) {
@@ -158,6 +162,10 @@  discard block
 block discarded – undo
158 162
 	}
159 163
 
160 164
 	// 1.19 doesn't have a getMethod
165
+
166
+	/**
167
+	 * @param string $key
168
+	 */
161 169
 	private function isHttpRequestMethod( $key ) {
162 170
 
163 171
 		if ( method_exists( $this->getRequest(), 'getMethod') ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use SpecialPage;
6 6
 use SMW\ApplicationFactory;
7
-use Onoi\HttpRequest\HttpRequestFactory;
8 7
 use Title;
9 8
 
10 9
 /**
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/PropertyAnnotator/MandatoryTypePropertyAnnotator.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
 		$this->addTypeFromImportVocabulary( $property, current( $dataItems ) );
52 52
 	}
53 53
 
54
+	/**
55
+	 * @param DIProperty $property
56
+	 */
54 57
 	private function addTypeFromImportVocabulary( $property, $dataItem ) {
55 58
 
56 59
 		$importValue = DataValueFactory::getInstance()->newDataItemValue(
@@ -80,6 +83,9 @@  discard block
 block discarded – undo
80 83
 		$this->replaceAnyTypeByImportType( $property, $dataValue );
81 84
 	}
82 85
 
86
+	/**
87
+	 * @param \SMWDataValue $dataValue
88
+	 */
83 89
 	private function replaceAnyTypeByImportType( DIProperty $property, $dataValue ) {
84 90
 
85 91
 		foreach ( $this->getSemanticData()->getPropertyValues( $property ) as $dataItem ) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,6 @@
 block discarded – undo
6 6
 use SMW\PropertyAnnotator;
7 7
 use SMW\DataValueFactory;
8 8
 use SMW\DataTypeRegistry;
9
-use SMW\Store;
10
-use SMWErrorValue as ErrorValue;
11 9
 
12 10
 /**
13 11
  * @license GNU GPL v2+
Please login to merge, or discard this patch.
src/PropertyHierarchyLookup.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -122,6 +122,10 @@  discard block
 block discarded – undo
122 122
 		return $this->findMatchesFor( '_SUBC', $category->getDBKey(), $category );
123 123
 	}
124 124
 
125
+	/**
126
+	 * @param string $id
127
+	 * @param string $key
128
+	 */
125 129
 	private function hasMatchFor( $id, $key, DIWikiPage $subject ) {
126 130
 
127 131
 		$key = 'm#' . $id . '#' . $key;
@@ -147,6 +151,10 @@  discard block
 block discarded – undo
147 151
 		return $result !== array();
148 152
 	}
149 153
 
154
+	/**
155
+	 * @param string $id
156
+	 * @param string $key
157
+	 */
150 158
 	private function findMatchesFor( $id, $key, DIWikiPage $subject ) {
151 159
 
152 160
 		$key = 'f#' . $id . '#' . $key;
Please login to merge, or discard this patch.