Completed
Branch master (a3363b)
by
unknown
26:00
created
includes/installer/MysqlUpdater.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
 	 * @param string $table Table name
290 290
 	 * @param string $field Field name to check
291 291
 	 * @param string $patchFile Path to the patch to correct the field
292
-	 * @return bool
292
+	 * @return boolean|null
293 293
 	 */
294 294
 	protected function checkBin( $table, $field, $patchFile ) {
295 295
 		if ( !$this->doTable( $table ) ) {
Please login to merge, or discard this patch.
includes/installer/PostgresUpdater.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -546,6 +546,9 @@  discard block
 block discarded – undo
546 546
 		return $colnames;
547 547
 	}
548 548
 
549
+	/**
550
+	 * @param string $fkey
551
+	 */
549 552
 	function fkeyDeltype( $fkey ) {
550 553
 		$q = <<<END
551 554
 SELECT confdeltype FROM pg_constraint, pg_namespace
@@ -726,6 +729,9 @@  discard block
 block discarded – undo
726 729
 		}
727 730
 	}
728 731
 
732
+	/**
733
+	 * @param string $default
734
+	 */
729 735
 	protected function setDefault( $table, $field, $default ) {
730 736
 
731 737
 		$info = $this->db->fieldInfo( $table, $field );
Please login to merge, or discard this patch.
includes/installer/WebInstaller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 	/**
389 389
 	 * Show an error message in a box. Parameters are like wfMessage(), or
390 390
 	 * alternatively, pass a Message object in.
391
-	 * @param string|Message $msg
391
+	 * @param string $msg
392 392
 	 */
393 393
 	public function showError( $msg /*...*/ ) {
394 394
 		if ( !( $msg instanceof Message ) ) {
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 	 * Set a session variable.
487 487
 	 *
488 488
 	 * @param string $name Key for the variable
489
-	 * @param mixed $value
489
+	 * @param boolean $value
490 490
 	 */
491 491
 	public function setSession( $name, $value ) {
492 492
 		$this->session[$name] = $value;
Please login to merge, or discard this patch.
includes/jobqueue/aggregator/JobQueueAggregatorRedis.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	/**
99 99
 	 * Get a connection to the server that handles all sub-queues for this queue
100 100
 	 *
101
-	 * @return RedisConnRef|bool Returns false on failure
101
+	 * @return boolean Returns false on failure
102 102
 	 * @throws MWException
103 103
 	 */
104 104
 	protected function getConnection() {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
 	/**
124 124
 	 * @param string $name
125
-	 * @return string
125
+	 * @return string[]
126 126
 	 */
127 127
 	private function decodeQueueName( $name ) {
128 128
 		list( $type, $wiki ) = explode( '/', $name, 2 );
Please login to merge, or discard this patch.
includes/jobqueue/Job.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	}
131 131
 
132 132
 	/**
133
-	 * @return int|null UNIX timestamp to delay running this job until, otherwise null
133
+	 * @return string|null UNIX timestamp to delay running this job until, otherwise null
134 134
 	 * @since 1.22
135 135
 	 */
136 136
 	public function getReleaseTimestamp() {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 
142 142
 	/**
143
-	 * @return int|null UNIX timestamp of when the job was queued, or null
143
+	 * @return string|null UNIX timestamp of when the job was queued, or null
144 144
 	 * @since 1.26
145 145
 	 */
146 146
 	public function getQueuedTimestamp() {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	}
151 151
 
152 152
 	/**
153
-	 * @return int|null UNIX timestamp of when the job was runnable, or null
153
+	 * @return string|null UNIX timestamp of when the job was runnable, or null
154 154
 	 * @since 1.26
155 155
 	 */
156 156
 	public function getReadyTimestamp() {
Please login to merge, or discard this patch.
includes/jobqueue/JobQueueDB.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 	 * @param string $uuid 32 char hex string
316 316
 	 * @param int $rand Random unsigned integer (31 bits)
317 317
 	 * @param bool $gte Search for job_random >= $random (otherwise job_random <= $random)
318
-	 * @return stdClass|bool Row|false
318
+	 * @return boolean Row|false
319 319
 	 */
320 320
 	protected function claimRandom( $uuid, $rand, $gte ) {
321 321
 		$dbw = $this->getMasterDB();
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 * Reserve a row with a single UPDATE without holding row locks over RTTs...
393 393
 	 *
394 394
 	 * @param string $uuid 32 char hex string
395
-	 * @return stdClass|bool Row|false
395
+	 * @return boolean Row|false
396 396
 	 */
397 397
 	protected function claimOldest( $uuid ) {
398 398
 		$dbw = $this->getMasterDB();
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 	 * @see JobQueue::doAck()
454 454
 	 * @param Job $job
455 455
 	 * @throws MWException
456
-	 * @return Job|bool
456
+	 * @return boolean
457 457
 	 */
458 458
 	protected function doAck( Job $job ) {
459 459
 		if ( !isset( $job->metadata['id'] ) ) {
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 
550 550
 	/**
551 551
 	 * @see JobQueue::getAllQueuedJobs()
552
-	 * @return Iterator
552
+	 * @return MappedIterator|null
553 553
 	 */
554 554
 	public function getAllQueuedJobs() {
555 555
 		return $this->getJobIterator( array( 'job_cmd' => $this->getType(), 'job_token' => '' ) );
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
 
558 558
 	/**
559 559
 	 * @see JobQueue::getAllAcquiredJobs()
560
-	 * @return Iterator
560
+	 * @return MappedIterator|null
561 561
 	 */
562 562
 	public function getAllAcquiredJobs() {
563 563
 		return $this->getJobIterator( array( 'job_cmd' => $this->getType(), "job_token > ''" ) );
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
 
566 566
 	/**
567 567
 	 * @param array $conds Query conditions
568
-	 * @return Iterator
568
+	 * @return MappedIterator|null
569 569
 	 */
570 570
 	protected function getJobIterator( array $conds ) {
571 571
 		$dbr = $this->getSlaveDB();
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
 	/**
818 818
 	 * Return the list of job fields that should be selected.
819 819
 	 * @since 1.23
820
-	 * @return array
820
+	 * @return string[]
821 821
 	 */
822 822
 	public static function selectFields() {
823 823
 		return array(
Please login to merge, or discard this patch.
includes/jobqueue/JobQueueGroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 	 * This pops a job off a queue as specified by $wgJobTypeConf and
180 180
 	 * updates the aggregate job queue information cache as needed.
181 181
 	 *
182
-	 * @param int|string $qtype JobQueueGroup::TYPE_* constant or job type string
182
+	 * @param integer $qtype JobQueueGroup::TYPE_* constant or job type string
183 183
 	 * @param int $flags Bitfield of JobQueueGroup::USE_* constants
184 184
 	 * @param array $blacklist List of job types to ignore
185 185
 	 * @return Job|bool Returns false on failure
Please login to merge, or discard this patch.
includes/jobqueue/JobQueueRedis.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 	/**
379 379
 	 * @see JobQueue::doAck()
380 380
 	 * @param Job $job
381
-	 * @return Job|bool
381
+	 * @return boolean
382 382
 	 * @throws UnexpectedValueException
383 383
 	 * @throws JobQueueError
384 384
 	 */
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 
481 481
 	/**
482 482
 	 * @see JobQueue::doDelete()
483
-	 * @return bool
483
+	 * @return boolean|null
484 484
 	 * @throws JobQueueError
485 485
 	 */
486 486
 	protected function doDelete() {
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
 
694 694
 	/**
695 695
 	 * @param array $fields
696
-	 * @return Job|bool
696
+	 * @return Job
697 697
 	 */
698 698
 	protected function getJobFromFields( array $fields ) {
699 699
 		$title = Title::makeTitle( $fields['namespace'], $fields['title'] );
Please login to merge, or discard this patch.
includes/jobqueue/jobs/ThumbnailRenderJob.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -77,6 +77,10 @@
 block discarded – undo
77 77
 		}
78 78
 	}
79 79
 
80
+	/**
81
+	 * @param File $file
82
+	 * @param string $thumbUrl
83
+	 */
80 84
 	protected function hitThumbUrl( $file, $transformParams, &$thumbUrl ) {
81 85
 		global $wgUploadThumbnailRenderHttpCustomHost, $wgUploadThumbnailRenderHttpCustomDomain;
82 86
 
Please login to merge, or discard this patch.