Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
src/Factbox/CachedFactbox.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 * @since 1.9
46 46
 	 *
47 47
 	 * @param Cache|null $cache
48
-	 * @param stdClass $cacheOptions
48
+	 * @param \stdClass $cacheOptions
49 49
 	 */
50 50
 	public function __construct( Cache $cache = null, \stdClass $cacheOptions ) {
51 51
 		$this->cache = $cache;
@@ -251,6 +251,7 @@  discard block
 block discarded – undo
251 251
 	/**
252 252
 	 * Cached content is serialized in an associative array following:
253 253
 	 * { 'revId' => $revisionId, 'text' => (...) }
254
+	 * @param string $key
254 255
 	 */
255 256
 	private function saveToCache( $key, array $content ) {
256 257
 
Please login to merge, or discard this patch.
src/Factbox/Factbox.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	 *
137 137
 	 * @since 1.9
138 138
 	 *
139
-	 * @return string|null
139
+	 * @return string
140 140
 	 */
141 141
 	public function getContent() {
142 142
 		return $this->content;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 	 *
194 194
 	 * @since 1.9
195 195
 	 *
196
-	 * @return array
196
+	 * @return string[]
197 197
 	 */
198 198
 	protected function getModules() {
199 199
 		return array(
@@ -211,9 +211,10 @@  discard block
 block discarded – undo
211 211
 	 *
212 212
 	 * @since 1.9
213 213
 	 *
214
-	 * @return integer $showFactbox
214
+	 * @param string|null $showFactbox
215
+	 * @return string $showFactbox
215 216
 	 *
216
-	 * @return string|null
217
+	 * @return string
217 218
 	 */
218 219
 	protected function fetchContent( $showFactbox = SMW_FACTBOX_NONEMPTY ) {
219 220
 
@@ -270,7 +271,7 @@  discard block
 block discarded – undo
270 271
 	 *
271 272
 	 * @param SMWSemanticData $semanticData
272 273
 	 *
273
-	 * @return string|null
274
+	 * @return string
274 275
 	 */
275 276
 	protected function createTable( SemanticData $semanticData ) {
276 277
 
Please login to merge, or discard this patch.
src/HashBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 	 *
98 98
 	 * @param string
99 99
 	 *
100
-	 * @return DIWikiPage|null
100
+	 * @return DIWikiPage
101 101
 	 */
102 102
 	public static function newDiWikiPageFromHash( $hash ) {
103 103
 
Please login to merge, or discard this patch.
src/Maintenance/ConceptCacheRebuilder.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -199,6 +199,9 @@  discard block
 block discarded – undo
199 199
 		return $skip;
200 200
 	}
201 201
 
202
+	/**
203
+	 * @return string
204
+	 */
202 205
 	private function performAction( Title $title, DIConcept $concept ) {
203 206
 		$this->reportMessage( "($this->lines) " );
204 207
 
@@ -256,6 +259,9 @@  discard block
 block discarded – undo
256 259
 		return $titleLookup->selectByIdRange( $this->startId, $endId );
257 260
 	}
258 261
 
262
+	/**
263
+	 * @param string $key
264
+	 */
259 265
 	private function hasOption( $key ) {
260 266
 		return isset( $this->options[$key] );
261 267
 	}
@@ -266,6 +272,9 @@  discard block
 block discarded – undo
266 272
 		}
267 273
 	}
268 274
 
275
+	/**
276
+	 * @param integer $date
277
+	 */
269 278
 	private function getCacheDateInfo( $date ) {
270 279
 		return date( 'Y-m-d H:i:s', $date ) . ' (' . floor( ( strtotime( 'now' ) - $date ) / 60 ) . ' minutes old), ';
271 280
 	}
Please login to merge, or discard this patch.
src/Maintenance/DataRebuilder.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,6 +160,9 @@  discard block
 block discarded – undo
160 160
 		return $this->rebuildCount;
161 161
 	}
162 162
 
163
+	/**
164
+	 * @param string $message
165
+	 */
163 166
 	private function doRebuildPagesFor( $message ) {
164 167
 
165 168
 		$this->reportMessage( $message  . "\n" );
@@ -305,6 +308,9 @@  discard block
 block discarded – undo
305 308
 		return true;
306 309
 	}
307 310
 
311
+	/**
312
+	 * @param double $byIdDataRebuildDispatcher
313
+	 */
308 314
 	private function deleteMarkedSubjects( $byIdDataRebuildDispatcher ) {
309 315
 
310 316
 		$matches = array();
@@ -338,6 +344,9 @@  discard block
 block discarded – undo
338 344
 		$this->reportMessage( "\n\n{$matchesCount} IDs removed.\n\n" );
339 345
 	}
340 346
 
347
+	/**
348
+	 * @param string $startIdFile
349
+	 */
341 350
 	private function idFileIsWritable( $startIdFile ) {
342 351
 
343 352
 		if ( !is_writable( file_exists( $startIdFile ) ? $startIdFile : dirname( $startIdFile ) ) ) {
@@ -354,7 +363,7 @@  discard block
 block discarded – undo
354 363
 	}
355 364
 
356 365
 	/**
357
-	 * @param array $options
366
+	 * @param Options $options
358 367
 	 */
359 368
 	private function setFiltersFromOptions( Options $options ) {
360 369
 		$this->filters = array();
@@ -439,6 +448,10 @@  discard block
 block discarded – undo
439 448
 		}
440 449
 	}
441 450
 
451
+	/**
452
+	 * @param boolean $verbose
453
+	 * @param string $progress
454
+	 */
442 455
 	private function doPrintDotProgressIndicator( $verbose, $progress ) {
443 456
 
444 457
 		if ( ( $this->rebuildCount - 1 ) % 60 === 0 ) {
Please login to merge, or discard this patch.
src/MediaWiki/Api/ApiRequestParameterFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	 *
73 73
 	 * @since 1.9
74 74
 	 *
75
-	 * @return ObjectDictionary
75
+	 * @return SimpleDictionary
76 76
 	 */
77 77
 	protected function formatAskArgs() {
78 78
 
Please login to merge, or discard this patch.
src/MediaWiki/Api/BrowseByProperty.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @codeCoverageIgnore
127 127
 	 * @see ApiBase::getDescription
128 128
 	 *
129
-	 * @return array
129
+	 * @return string[]
130 130
 	 */
131 131
 	public function getDescription() {
132 132
 		return array(
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 * @codeCoverageIgnore
139 139
 	 * @see ApiBase::getExamples
140 140
 	 *
141
-	 * @return array
141
+	 * @return string[]
142 142
 	 */
143 143
 	protected function getExamples() {
144 144
 		return array(
Please login to merge, or discard this patch.
src/MediaWiki/Database.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,6 @@  discard block
 block discarded – undo
94 94
 	 *
95 95
 	 * @since 1.9.0.2
96 96
 	 *
97
-	 * @param string $tableName
98 97
 	 *
99 98
 	 * @return string
100 99
 	 */
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
 	 *
121 120
 	 * @since 1.9.0.2
122 121
 	 *
123
-	 * @param mixed $results
122
+	 * @param string $results
124 123
 	 *
125 124
 	 * @return integer
126 125
 	 */
@@ -149,6 +148,7 @@  discard block
 block discarded – undo
149 148
 	 * @param $conditions
150 149
 	 * @param array $options
151 150
 	 * @param array $joinConditions
151
+	 * @param string $fname
152 152
 	 *
153 153
 	 * @return ResultWrapper
154 154
 	 * @throws UnexpectedValueException
@@ -320,6 +320,7 @@  discard block
 block discarded – undo
320 320
 	 * @see DatabaseBase::insert
321 321
 	 *
322 322
 	 * @since 1.9.1
323
+	 * @param string $table
323 324
 	 */
324 325
 	public function insert( $table, $rows, $fname = __METHOD__, $options = array() ) {
325 326
 		return $this->writeConnection()->insert( $table, $rows, $fname, $options );
@@ -338,6 +339,7 @@  discard block
 block discarded – undo
338 339
 	 * @see DatabaseBase::delete
339 340
 	 *
340 341
 	 * @since 1.9.1
342
+	 * @param string $table
341 343
 	 */
342 344
 	public function delete( $table, $conds, $fname = __METHOD__ ) {
343 345
 		return $this->writeConnection()->delete( $table, $conds, $fname );
@@ -370,6 +372,8 @@  discard block
 block discarded – undo
370 372
 	 * @see DatabaseBase::selectField
371 373
 	 *
372 374
 	 * @since 1.9.2
375
+	 * @param string $table
376
+	 * @param string $fieldName
373 377
 	 */
374 378
 	public function selectField( $table, $fieldName, $conditions = '', $fname = __METHOD__, $options = array() ) {
375 379
 		return $this->readConnection()->selectField( $table, $fieldName, $conditions, $fname, $options );
@@ -379,6 +383,7 @@  discard block
 block discarded – undo
379 383
 	 * @see DatabaseBase::estimateRowCount
380 384
 	 *
381 385
 	 * @since 2.1
386
+	 * @param string $table
382 387
 	 */
383 388
 	public function estimateRowCount( $table, $vars = '*', $conditions = '', $fname = __METHOD__, $options = array() ) {
384 389
 		return $this->readConnection()->estimateRowCount(
Please login to merge, or discard this patch.
src/MediaWiki/Hooks/HookRegistry.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 *
74 74
 	 * @param string $name
75 75
 	 *
76
-	 * @return Callable|false
76
+	 * @return \Closure
77 77
 	 */
78 78
 	public function getHandlerFor( $name ) {
79 79
 		return isset( $this->handlers[$name] ) ? $this->handlers[$name] : false;
@@ -98,6 +98,9 @@  discard block
 block discarded – undo
98 98
 		}
99 99
 	}
100 100
 
101
+	/**
102
+	 * @param string $basePath
103
+	 */
101 104
 	private function addCallbackHandlers( $basePath, $globalVars ) {
102 105
 
103 106
 		$eventHandler = EventHandler::getInstance();
Please login to merge, or discard this patch.