Completed
Push — master ( ebe875...a265d1 )
by mw
94:25 queued 69:18
created
src/Query/PrintRequest.php 1 patch
Doc Comments   +11 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	 * @param integer $mode a constant defining what to printout
47 47
 	 * @param string $label the string label to describe this printout
48 48
 	 * @param mixed $data optional data for specifying some request, might be a property object, title, or something else; interpretation depends on $mode
49
-	 * @param mixed $outputformat optional string for specifying an output format, e.g. an output unit
49
+	 * @param string $outputformat optional string for specifying an output format, e.g. an output unit
50 50
 	 * @param array|null $params optional array of further, named parameters for the print request
51 51
 	 */
52 52
 	public function __construct( $mode, $label, $data = null, $outputformat = false, array $params = null ) {
@@ -130,6 +130,8 @@  discard block
 block discarded – undo
130 130
 
131 131
 	/**
132 132
 	 * Convenience method for accessing the text in either HTML or Wiki format.
133
+	 * @param integer $outputmode
134
+	 * @return string
133 135
 	 */
134 136
 	public function getText( $outputmode, $linker = null ) {
135 137
 		switch ( $outputmode ) {
@@ -267,7 +269,7 @@  discard block
 block discarded – undo
267 269
 	/**
268 270
 	 * Returns the value of a named parameter.
269 271
 	 *
270
-	 * @param $key string the name of the parameter key
272
+	 * @param string $key string the name of the parameter key
271 273
 	 *
272 274
 	 * @return string Value of the paramer, if set (else FALSE)
273 275
 	 */
@@ -287,7 +289,7 @@  discard block
 block discarded – undo
287 289
 	/**
288 290
 	 * Sets a print request parameter.
289 291
 	 *
290
-	 * @param $key string Name of the parameter
292
+	 * @param string $key string Name of the parameter
291 293
 	 * @param $value string Value for the parameter
292 294
 	 */
293 295
 	public function setParameter( $key, $value ) {
@@ -373,11 +375,17 @@  discard block
 block discarded – undo
373 375
 		}
374 376
 	}
375 377
 
378
+	/**
379
+	 * @param string $text
380
+	 */
376 381
 	private static function isCategory( $text ) {
377 382
 		return Localizer::getInstance()->getNamespaceTextById( NS_CATEGORY ) == mb_convert_case( $text, MB_CASE_TITLE ) ||
378 383
 		$text == 'Category';
379 384
 	}
380 385
 
386
+	/**
387
+	 * @param string $text
388
+	 */
381 389
 	private static function doSplitText( $text ) {
382 390
 		// 1464
383 391
 		// Temporary encode "=" within a <> entity (<span>...</span>)
Please login to merge, or discard this patch.
src/PropertyAnnotator/DisplayTitlePropertyAnnotator.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\PropertyAnnotator;
4 4
 
5
-use SMW\DIProperty;
6 5
 use SMW\PropertyAnnotator;
7
-use SMWDIBlob as DIBlob;
8 6
 
9 7
 /**
10 8
  * @license GNU GPL v2+
Please login to merge, or discard this patch.
src/CacheFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 *
121 121
 	 * @param integer|string $mediaWikiCacheType
122 122
 	 *
123
-	 * @return Cache
123
+	 * @return null|\Onoi\Cache\Cache
124 124
 	 */
125 125
 	public function newMediaWikiCompositeCache( $mediaWikiCacheType = null ) {
126 126
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * @param string|integer|null $cacheType
144 144
 	 * @param integer $cacheLifetime
145 145
 	 *
146
-	 * @return BlobStore
146
+	 * @return \Onoi\BlobStore\BlobStore
147 147
 	 */
148 148
 	public function newBlobStore( $namespace, $cacheType = null, $cacheLifetime = 0 ) {
149 149
 
Please login to merge, or discard this patch.
src/SharedCallbackContainer.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
 		$this->registerCallbackHandlersByFactory( $callbackLoader );
30 30
 	}
31 31
 
32
+	/**
33
+	 * @param CallbackLoader $callbackLoader
34
+	 */
32 35
 	private function registerCallbackHandlers( $callbackLoader ) {
33 36
 
34 37
 		$callbackLoader->registerExpectedReturnType( 'Settings', '\SMW\Settings' );
@@ -111,6 +114,9 @@  discard block
 block discarded – undo
111 114
 		} );
112 115
 	}
113 116
 
117
+	/**
118
+	 * @param CallbackLoader $callbackLoader
119
+	 */
114 120
 	private function registerCallbackHandlersByFactory( $callbackLoader ) {
115 121
 
116 122
 		$callbackLoader->registerCallback( 'BlobStore', function( $namespace, $cacheType = null, $ttl = 0 ) use ( $callbackLoader ) {
Please login to merge, or discard this patch.
src/SQLStore/RedirectInfoStore.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -103,6 +103,10 @@  discard block
 block discarded – undo
103 103
 		$this->inMemoryPoolCache->getPoolCacheFor( 'sql.store.redirect.infostore' )->delete( $hash );
104 104
 	}
105 105
 
106
+	/**
107
+	 * @param string $title
108
+	 * @param integer $namespace
109
+	 */
106 110
 	private function select( $title, $namespace ) {
107 111
 
108 112
 		$row = $this->connection->selectRow(
@@ -118,6 +122,11 @@  discard block
 block discarded – undo
118 122
 		return $row !== false && isset( $row->o_id ) ? (int)$row->o_id : 0;
119 123
 	}
120 124
 
125
+	/**
126
+	 * @param integer $id
127
+	 * @param string $title
128
+	 * @param integer $namespace
129
+	 */
121 130
 	private function insert( $id, $title, $namespace ) {
122 131
 
123 132
 		$this->connection->insert(
@@ -130,6 +139,10 @@  discard block
 block discarded – undo
130 139
 		);
131 140
 	}
132 141
 
142
+	/**
143
+	 * @param string $title
144
+	 * @param integer $namespace
145
+	 */
133 146
 	private function delete( $title, $namespace ) {
134 147
 
135 148
 		$this->connection->delete(
Please login to merge, or discard this patch.
tests/phpunit/includes/storage/sqlstore/Sql3StubSemanticDataTest.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\DIProperty;
6 6
 use SMW\DIWikiPage;
7 7
 use SMW\SemanticData;
8
-use SMW\StoreFactory;
9 8
 use SMWDITime as DITime;
10 9
 use SMWSql3StubSemanticData as StubSemanticData;
11 10
 use Title;
Please login to merge, or discard this patch.
src/DataValues/MonolingualTextValue.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,6 @@  discard block
 block discarded – undo
72 72
 	 * @see DataValue::parseUserValue
73 73
 	 * @note called by DataValue::setUserValue
74 74
 	 *
75
-	 * @param string $value
76 75
 	 */
77 76
 	protected function parseUserValue( $userValue ) {
78 77
 
@@ -248,6 +247,7 @@  discard block
 block discarded – undo
248 247
 	/**
249 248
 	 * @since 2.4
250 249
 	 *
250
+	 * @param string $languageCode
251 251
 	 * @return DataValue|null
252 252
 	 */
253 253
 	public function getTextValueByLanguage( $languageCode ) {
@@ -280,6 +280,9 @@  discard block
 block discarded – undo
280 280
 		return $dataValue;
281 281
 	}
282 282
 
283
+	/**
284
+	 * @param string $value
285
+	 */
283 286
 	private function newContainerSemanticData( $value ) {
284 287
 
285 288
 		if ( $this->m_contextPage === null ) {
Please login to merge, or discard this patch.
includes/articlepages/SMW_OrderedListPage.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,6 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
 	/**
121 121
 	 * @since 2.4
122
+	 * @param string $msgKey
122 123
 	 */
123 124
 	protected function getNavigationLinks( $msgKey, array $diWikiPages, $default = 50 ) {
124 125
 		global $wgRequest;
@@ -178,7 +179,7 @@  discard block
 block discarded – undo
178 179
 	 * If the method returns false, nothing will be printed besides
179 180
 	 * the original article.
180 181
 	 *
181
-	 * @return true
182
+	 * @return boolean
182 183
 	 */
183 184
 	protected function initParameters() {
184 185
 		$this->limit = 20;
Please login to merge, or discard this patch.
includes/specials/SMW_SpecialBrowse.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * @param[in] $left bool  Should properties be displayed on the left side?
171 171
 	 * @param[in] $incoming bool  Is this an incoming? Or an outgoing?
172 172
 	 *
173
-	 * @return A string containing the HTML with the factbox
173
+	 * @return string string containing the HTML with the factbox
174 174
 	 */
175 175
 	private function displayData( SMWSemanticData $data, $left = true, $incoming = false ) {
176 176
 		// Some of the CSS classes are different for the left or the right side.
@@ -264,6 +264,7 @@  discard block
 block discarded – undo
264 264
 	 * @param[in] $property SMWPropertyValue  The property this value is linked to the subject with
265 265
 	 * @param[in] $value SMWDataValue  The actual value
266 266
 	 * @param[in] $incoming bool  If this is an incoming or outgoing link
267
+	 * @param boolean $incoming
267 268
 	 *
268 269
 	 * @return string  HTML with the link to the article, browse, and search pages
269 270
 	 */
@@ -291,7 +292,7 @@  discard block
 block discarded – undo
291 292
 	/**
292 293
 	 * Displays the subject that is currently being browsed to.
293 294
 	 *
294
-	 * @return A string containing the HTML with the subject line
295
+	 * @return string string containing the HTML with the subject line
295 296
 	 */
296 297
 	private function displayHead() {
297 298
 		global $wgOut;
@@ -324,6 +325,7 @@  discard block
 block discarded – undo
324 325
 	 * Creates the HTML for the bottom bar including the links with further navigation options.
325 326
 	 *
326 327
 	 * @param[in] $more bool  Are there more inproperties to be displayed?
328
+	 * @param boolean $more
327 329
 	 * @return string  HTMl with the bottom bar
328 330
 	 */
329 331
 	private function displayBottom( $more ) {
@@ -353,6 +355,9 @@  discard block
 block discarded – undo
353 355
 	 * @param[in] $out bool  Should the linked to page include outgoing properties?
354 356
 	 * @param[in] $in bool  Should the linked to page include incoming properties?
355 357
 	 * @param[in] $offset int  What is the offset for the incoming properties?
358
+	 * @param boolean $out
359
+	 * @param boolean $in
360
+	 * @param integer $offset
356 361
 	 *
357 362
 	 * @return string  HTML with the link to this page
358 363
 	 */
@@ -442,7 +447,7 @@  discard block
 block discarded – undo
442 447
 	/**
443 448
 	 * Creates the query form in order to quickly switch to a specific article.
444 449
 	 *
445
-	 * @return A string containing the HTML for the form
450
+	 * @return string string containing the HTML for the form
446 451
 	 */
447 452
 	private function queryForm() {
448 453
 
Please login to merge, or discard this patch.