Completed
Branch master (3e9d3e)
by
unknown
35:58
created
languages/classes/LanguageKk.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	/**
44 44
 	 * @param Language $langobj
45 45
 	 * @param string $maincode
46
-	 * @param array $variants
46
+	 * @param string[] $variants
47 47
 	 * @param array $variantfallbacks
48 48
 	 * @param array $flags
49 49
 	 */
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	/**
323 323
 	 * @param string $text
324 324
 	 * @param string $toVariant
325
-	 * @return mixed|string
325
+	 * @return string|null
326 326
 	 */
327 327
 	function regsConverter( $text, $toVariant ) {
328 328
 		if ( $text == '' ) {
Please login to merge, or discard this patch.
languages/classes/LanguageKk_cyrl.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -738,7 +738,7 @@
 block discarded – undo
738 738
 
739 739
 	/**
740 740
 	 * @param string $word
741
-	 * @param array $allVowels
741
+	 * @param string[] $allVowels
742 742
 	 * @return array
743 743
 	 */
744 744
 	function lastLetter( $word, $allVowels ) {
Please login to merge, or discard this patch.
languages/classes/LanguageTr.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 	/**
48 48
 	 * @param string $string
49
-	 * @return mixed|string
49
+	 * @return string
50 50
 	 */
51 51
 	function lcfirst( $string ) {
52 52
 		if ( strlen( $string ) && $string[0] == 'I' ) {
Please login to merge, or discard this patch.
languages/classes/LanguageZh.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	/**
32 32
 	 * @param Language $langobj
33 33
 	 * @param string $maincode
34
-	 * @param array $variants
34
+	 * @param string[] $variants
35 35
 	 * @param array $variantfallbacks
36 36
 	 * @param array $flags
37 37
 	 * @param array $manualLevel
Please login to merge, or discard this patch.
languages/ConverterRule.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -466,7 +466,7 @@
 block discarded – undo
466 466
 
467 467
 	/**
468 468
 	 * Get converted title.
469
-	 * @return string
469
+	 * @return boolean
470 470
 	 */
471 471
 	public function getTitle() {
472 472
 		return $this->mRuleTitle;
Please login to merge, or discard this patch.
languages/FakeConverter.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
 	 */
33 33
 	public $mLang;
34 34
 
35
+	/**
36
+	 * @param Language $langobj
37
+	 */
35 38
 	function __construct( $langobj ) {
36 39
 		$this->mLang = $langobj;
37 40
 	}
@@ -54,7 +57,7 @@  discard block
 block discarded – undo
54 57
 
55 58
 	/**
56 59
 	 * @param Title $t
57
-	 * @return mixed
60
+	 * @return string
58 61
 	 */
59 62
 	function convertTitle( $t ) {
60 63
 		return $t->getPrefixedText();
Please login to merge, or discard this patch.
languages/Language.php 1 patch
Doc Comments   +18 added lines, -16 removed lines patch added patch discarded remove patch
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
 	}
760 760
 
761 761
 	/**
762
-	 * @return array|string
762
+	 * @return string
763 763
 	 */
764 764
 	function getDefaultDateFormat() {
765 765
 		$df = self::$dataCache->getItem( $this->mCode, 'defaultDateFormat' );
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
 	}
988 988
 
989 989
 	/**
990
-	 * @return array
990
+	 * @return string[]
991 991
 	 */
992 992
 	function getMonthNamesArray() {
993 993
 		$monthNames = array( '' );
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
 	}
1015 1015
 
1016 1016
 	/**
1017
-	 * @return array
1017
+	 * @return string[]
1018 1018
 	 */
1019 1019
 	function getMonthAbbreviationsArray() {
1020 1020
 		$monthNames = array( '' );
@@ -1076,7 +1076,7 @@  discard block
 block discarded – undo
1076 1076
 	 * Pass through result from $dateTimeObj->format()
1077 1077
 	 * @param DateTime|bool|null &$dateTimeObj
1078 1078
 	 * @param string $ts
1079
-	 * @param DateTimeZone|bool|null $zone
1079
+	 * @param null|DateTimeZone $zone
1080 1080
 	 * @param string $code
1081 1081
 	 * @return string
1082 1082
 	 */
@@ -1873,7 +1873,7 @@  discard block
 block discarded – undo
1873 1873
 	 *
1874 1874
 	 * @param int $year
1875 1875
 	 *
1876
-	 * @return string
1876
+	 * @return integer
1877 1877
 	 */
1878 1878
 	private static function hebrewYearStart( $year ) {
1879 1879
 		$a = intval( ( 12 * ( $year - 1 ) + 17 ) % 19 );
@@ -2661,7 +2661,7 @@  discard block
 block discarded – undo
2661 2661
 
2662 2662
 	/**
2663 2663
 	 * @param array $matches
2664
-	 * @return mixed|string
2664
+	 * @return string
2665 2665
 	 */
2666 2666
 	function ucwordbreaksCallbackAscii( $matches ) {
2667 2667
 		return $this->ucfirst( $matches[1] );
@@ -2764,7 +2764,7 @@  discard block
 block discarded – undo
2764 2764
 
2765 2765
 	/**
2766 2766
 	 * @param string $str
2767
-	 * @return mixed|string
2767
+	 * @return string
2768 2768
 	 */
2769 2769
 	function lcfirst( $str ) {
2770 2770
 		$o = ord( $str );
@@ -2783,7 +2783,7 @@  discard block
 block discarded – undo
2783 2783
 	/**
2784 2784
 	 * @param string $str
2785 2785
 	 * @param bool $first
2786
-	 * @return mixed|string
2786
+	 * @return string
2787 2787
 	 */
2788 2788
 	function lc( $str, $first = false ) {
2789 2789
 		if ( function_exists( 'mb_strtolower' ) ) {
@@ -2820,7 +2820,7 @@  discard block
 block discarded – undo
2820 2820
 
2821 2821
 	/**
2822 2822
 	 * @param string $str
2823
-	 * @return mixed|string
2823
+	 * @return string
2824 2824
 	 */
2825 2825
 	function ucwords( $str ) {
2826 2826
 		if ( $this->isMultibyte( $str ) ) {
@@ -2852,7 +2852,7 @@  discard block
 block discarded – undo
2852 2852
 	 * capitalize words at word breaks
2853 2853
 	 *
2854 2854
 	 * @param string $str
2855
-	 * @return mixed
2855
+	 * @return string
2856 2856
 	 */
2857 2857
 	function ucwordbreaks( $str ) {
2858 2858
 		if ( $this->isMultibyte( $str ) ) {
@@ -2922,7 +2922,7 @@  discard block
 block discarded – undo
2922 2922
 	}
2923 2923
 
2924 2924
 	/**
2925
-	 * @return array
2925
+	 * @return string
2926 2926
 	 */
2927 2927
 	function fallback8bitEncoding() {
2928 2928
 		return self::$dataCache->getItem( $this->mCode, 'fallback8bitEncoding' );
@@ -4218,6 +4218,8 @@  discard block
 block discarded – undo
4218 4218
 	 * @param Title &$nt The title object of the link
4219 4219
 	 * @param bool $ignoreOtherCond To disable other conditions when
4220 4220
 	 *   we need to transclude a template or update a category's link
4221
+	 * @param string $link
4222
+	 * @param Title $nt
4221 4223
 	 */
4222 4224
 	public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
4223 4225
 		$this->mConverter->findVariantLink( $link, $nt, $ignoreOtherCond );
@@ -4532,7 +4534,7 @@  discard block
 block discarded – undo
4532 4534
 
4533 4535
 	/**
4534 4536
 	 * @param string $talk
4535
-	 * @return mixed
4537
+	 * @return string
4536 4538
 	 */
4537 4539
 	function fixVariableInNamespace( $talk ) {
4538 4540
 		if ( strpos( $talk, '$1' ) === false ) {
@@ -4585,7 +4587,7 @@  discard block
 block discarded – undo
4585 4587
 	 * @param string $expiry Database expiry String
4586 4588
 	 * @param bool|int $format True to process using language functions, or TS_ constant
4587 4589
 	 *     to return the expiry in a given timestamp
4588
-	 * @param string $inifinity If $format is not true, use this string for infinite expiry
4590
+	 * @param string $infinity If $format is not true, use this string for infinite expiry
4589 4591
 	 * @return string
4590 4592
 	 * @since 1.18
4591 4593
 	 */
@@ -4608,7 +4610,7 @@  discard block
 block discarded – undo
4608 4610
 
4609 4611
 	/**
4610 4612
 	 * @todo Document
4611
-	 * @param int|float $seconds
4613
+	 * @param double $seconds
4612 4614
 	 * @param array $format Optional
4613 4615
 	 *   If $format['avoid'] === 'avoidseconds': don't mention seconds if $seconds >= 1 hour.
4614 4616
 	 *   If $format['avoid'] === 'avoidminutes': don't mention seconds/minutes if $seconds > 48 hours.
@@ -4777,7 +4779,7 @@  discard block
 block discarded – undo
4777 4779
 	 * @param string $details HTML safe text between brackets
4778 4780
 	 * @param bool $oppositedm Add the direction mark opposite to your
4779 4781
 	 *   language, to display text properly
4780
-	 * @return HTML escaped string
4782
+	 * @return string escaped string
4781 4783
 	 */
4782 4784
 	function specialList( $page, $details, $oppositedm = true ) {
4783 4785
 		if ( !$details ) {
@@ -4862,7 +4864,7 @@  discard block
 block discarded – undo
4862 4864
 	/**
4863 4865
 	 * Get the conversion rule title, if any.
4864 4866
 	 *
4865
-	 * @return string
4867
+	 * @return boolean
4866 4868
 	 */
4867 4869
 	public function getConvRuleTitle() {
4868 4870
 		return $this->mConverter->getConvRuleTitle();
Please login to merge, or discard this patch.
languages/LanguageConverter.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
 	/**
147 147
 	 * Get the title produced by the conversion rule.
148
-	 * @return string The converted title text
148
+	 * @return boolean The converted title text
149 149
 	 */
150 150
 	public function getConvRuleTitle() {
151 151
 		return $this->mConvRuleTitle;
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	/**
208 208
 	 * Validate the variant
209 209
 	 * @param string $variant The variant to validate
210
-	 * @return mixed Returns the variant if it is valid, null otherwise
210
+	 * @return string|null Returns the variant if it is valid, null otherwise
211 211
 	 */
212 212
 	public function validateVariant( $variant = null ) {
213 213
 		if ( $variant !== null && in_array( $variant, $this->mVariants ) ) {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 	/**
220 220
 	 * Get the variant specified in the URL
221 221
 	 *
222
-	 * @return mixed Variant if one found, false otherwise.
222
+	 * @return string|null Variant if one found, false otherwise.
223 223
 	 */
224 224
 	public function getURLVariant() {
225 225
 		global $wgRequest;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 	/**
243 243
 	 * Determine if the user has a variant set.
244 244
 	 *
245
-	 * @return mixed Variant if one found, false otherwise.
245
+	 * @return string|null Variant if one found, false otherwise.
246 246
 	 */
247 247
 	protected function getUserVariant() {
248 248
 		global $wgUser, $wgContLang;
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	/**
277 277
 	 * Determine the language variant from the Accept-Language header.
278 278
 	 *
279
-	 * @return mixed Variant if one found, false otherwise.
279
+	 * @return string|null Variant if one found, false otherwise.
280 280
 	 */
281 281
 	protected function getHeaderVariant() {
282 282
 		global $wgRequest;
Please login to merge, or discard this patch.
maintenance/archives/upgradeLogging.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -178,6 +178,10 @@
 block discarded – undo
178 178
 		echo "Copied $numRowsCopied rows\n";
179 179
 	}
180 180
 
181
+	/**
182
+	 * @param string $srcTable
183
+	 * @param string $dstTable
184
+	 */
181 185
 	function copyExactMatch( $srcTable, $dstTable, $copyPos ) {
182 186
 		$numRowsCopied = 0;
183 187
 		$srcRes = $this->dbw->select( $srcTable, '*', array( 'log_timestamp' => $copyPos ), __METHOD__ );
Please login to merge, or discard this patch.