Completed
Branch master (fb4c96)
by
unknown
21:11
created
languages/Language.php 1 patch
Doc Comments   +17 added lines, -15 removed lines patch added patch discarded remove patch
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
 	}
739 739
 
740 740
 	/**
741
-	 * @return array|string
741
+	 * @return string
742 742
 	 */
743 743
 	function getDefaultDateFormat() {
744 744
 		$df = self::$dataCache->getItem( $this->mCode, 'defaultDateFormat' );
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
 	}
923 923
 
924 924
 	/**
925
-	 * @return array
925
+	 * @return string[]
926 926
 	 */
927 927
 	function getMonthNamesArray() {
928 928
 		$monthNames = [ '' ];
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
 	}
950 950
 
951 951
 	/**
952
-	 * @return array
952
+	 * @return string[]
953 953
 	 */
954 954
 	function getMonthAbbreviationsArray() {
955 955
 		$monthNames = [ '' ];
@@ -1011,7 +1011,7 @@  discard block
 block discarded – undo
1011 1011
 	 * Pass through result from $dateTimeObj->format()
1012 1012
 	 * @param DateTime|bool|null &$dateTimeObj
1013 1013
 	 * @param string $ts
1014
-	 * @param DateTimeZone|bool|null $zone
1014
+	 * @param null|DateTimeZone $zone
1015 1015
 	 * @param string $code
1016 1016
 	 * @return string
1017 1017
 	 */
@@ -1808,7 +1808,7 @@  discard block
 block discarded – undo
1808 1808
 	 *
1809 1809
 	 * @param int $year
1810 1810
 	 *
1811
-	 * @return string
1811
+	 * @return integer
1812 1812
 	 */
1813 1813
 	private static function hebrewYearStart( $year ) {
1814 1814
 		$a = intval( ( 12 * ( $year - 1 ) + 17 ) % 19 );
@@ -2596,7 +2596,7 @@  discard block
 block discarded – undo
2596 2596
 
2597 2597
 	/**
2598 2598
 	 * @param array $matches
2599
-	 * @return mixed|string
2599
+	 * @return string
2600 2600
 	 */
2601 2601
 	function ucwordbreaksCallbackAscii( $matches ) {
2602 2602
 		return $this->ucfirst( $matches[1] );
@@ -2699,7 +2699,7 @@  discard block
 block discarded – undo
2699 2699
 
2700 2700
 	/**
2701 2701
 	 * @param string $str
2702
-	 * @return mixed|string
2702
+	 * @return string
2703 2703
 	 */
2704 2704
 	function lcfirst( $str ) {
2705 2705
 		$o = ord( $str );
@@ -2718,7 +2718,7 @@  discard block
 block discarded – undo
2718 2718
 	/**
2719 2719
 	 * @param string $str
2720 2720
 	 * @param bool $first
2721
-	 * @return mixed|string
2721
+	 * @return string
2722 2722
 	 */
2723 2723
 	function lc( $str, $first = false ) {
2724 2724
 		if ( function_exists( 'mb_strtolower' ) ) {
@@ -2755,7 +2755,7 @@  discard block
 block discarded – undo
2755 2755
 
2756 2756
 	/**
2757 2757
 	 * @param string $str
2758
-	 * @return mixed|string
2758
+	 * @return string
2759 2759
 	 */
2760 2760
 	function ucwords( $str ) {
2761 2761
 		if ( $this->isMultibyte( $str ) ) {
@@ -2787,7 +2787,7 @@  discard block
 block discarded – undo
2787 2787
 	 * capitalize words at word breaks
2788 2788
 	 *
2789 2789
 	 * @param string $str
2790
-	 * @return mixed
2790
+	 * @return string
2791 2791
 	 */
2792 2792
 	function ucwordbreaks( $str ) {
2793 2793
 		if ( $this->isMultibyte( $str ) ) {
@@ -2858,7 +2858,7 @@  discard block
 block discarded – undo
2858 2858
 	}
2859 2859
 
2860 2860
 	/**
2861
-	 * @return array
2861
+	 * @return string
2862 2862
 	 */
2863 2863
 	function fallback8bitEncoding() {
2864 2864
 		return self::$dataCache->getItem( $this->mCode, 'fallback8bitEncoding' );
@@ -4154,6 +4154,8 @@  discard block
 block discarded – undo
4154 4154
 	 * @param Title &$nt The title object of the link
4155 4155
 	 * @param bool $ignoreOtherCond To disable other conditions when
4156 4156
 	 *   we need to transclude a template or update a category's link
4157
+	 * @param string $link
4158
+	 * @param Title $nt
4157 4159
 	 */
4158 4160
 	public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
4159 4161
 		$this->mConverter->findVariantLink( $link, $nt, $ignoreOtherCond );
@@ -4469,7 +4471,7 @@  discard block
 block discarded – undo
4469 4471
 
4470 4472
 	/**
4471 4473
 	 * @param string $talk
4472
-	 * @return mixed
4474
+	 * @return string
4473 4475
 	 */
4474 4476
 	function fixVariableInNamespace( $talk ) {
4475 4477
 		if ( strpos( $talk, '$1' ) === false ) {
@@ -4545,7 +4547,7 @@  discard block
 block discarded – undo
4545 4547
 
4546 4548
 	/**
4547 4549
 	 * @todo Document
4548
-	 * @param int|float $seconds
4550
+	 * @param double $seconds
4549 4551
 	 * @param array $format Optional
4550 4552
 	 *   If $format['avoid'] === 'avoidseconds': don't mention seconds if $seconds >= 1 hour.
4551 4553
 	 *   If $format['avoid'] === 'avoidminutes': don't mention seconds/minutes if $seconds > 48 hours.
@@ -4714,7 +4716,7 @@  discard block
 block discarded – undo
4714 4716
 	 * @param string $details HTML safe text between brackets
4715 4717
 	 * @param bool $oppositedm Add the direction mark opposite to your
4716 4718
 	 *   language, to display text properly
4717
-	 * @return HTML escaped string
4719
+	 * @return string escaped string
4718 4720
 	 */
4719 4721
 	function specialList( $page, $details, $oppositedm = true ) {
4720 4722
 		if ( !$details ) {
@@ -4799,7 +4801,7 @@  discard block
 block discarded – undo
4799 4801
 	/**
4800 4802
 	 * Get the conversion rule title, if any.
4801 4803
 	 *
4802
-	 * @return string
4804
+	 * @return boolean
4803 4805
 	 */
4804 4806
 	public function getConvRuleTitle() {
4805 4807
 		return $this->mConverter->getConvRuleTitle();
Please login to merge, or discard this patch.
includes/cache/localisation/LCStoreCDB.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -130,6 +130,11 @@
 block discarded – undo
130 130
 		}
131 131
 	}
132 132
 
133
+	/**
134
+	 * @param string $code
135
+	 *
136
+	 * @return string
137
+	 */
133 138
 	protected function getFileName( $code ) {
134 139
 		if ( strval( $code ) === '' || strpos( $code, '/' ) !== false ) {
135 140
 			throw new MWException( __METHOD__ . ": Invalid language \"$code\"" );
Please login to merge, or discard this patch.
includes/cache/localisation/LocalisationCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -691,7 +691,7 @@
 block discarded – undo
691 691
 	 *
692 692
 	 * @param string $code
693 693
 	 * @param array $deps
694
-	 * @return array
694
+	 * @return string
695 695
 	 */
696 696
 	protected function readSourceFilesAndRegisterDeps( $code, &$deps ) {
697 697
 		global $IP;
Please login to merge, or discard this patch.
includes/specials/pagers/AllMessagesTablePager.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,6 +97,10 @@  discard block
 block discarded – undo
97 97
 	 */
98 98
 	public $custom;
99 99
 
100
+	/**
101
+	 * @param SpecialAllMessages $page
102
+	 * @param Language $langObj
103
+	 */
100 104
 	function __construct( $page, $conds, $langObj = null ) {
101 105
 		parent::__construct( $page->getContext() );
102 106
 		$this->mIndexField = 'am_title';
@@ -223,6 +227,9 @@  discard block
 block discarded – undo
223 227
 		return $out;
224 228
 	}
225 229
 
230
+	/**
231
+	 * @param boolean $descending
232
+	 */
226 233
 	function getAllMessages( $descending ) {
227 234
 		$messageNames = Language::getLocalisationCache()->getSubitemList( 'en', 'messages' );
228 235
 
@@ -247,7 +254,7 @@  discard block
 block discarded – undo
247 254
 	 * @param array $messageNames
248 255
 	 * @param string $langcode What language code
249 256
 	 * @param bool $foreign Whether the $langcode is not the content language
250
-	 * @return array A 'pages' and 'talks' array with the keys of existing pages
257
+	 * @return string A 'pages' and 'talks' array with the keys of existing pages
251 258
 	 */
252 259
 	public static function getCustomisedStatuses( $messageNames, $langcode = 'en', $foreign = false ) {
253 260
 		// FIXME: This function should be moved to Language:: or something.
@@ -439,6 +446,9 @@  discard block
 block discarded – undo
439 446
 		return $arr;
440 447
 	}
441 448
 
449
+	/**
450
+	 * @param string $field
451
+	 */
442 452
 	function getCellAttrs( $field, $value ) {
443 453
 		if ( $this->mCurrentRow->am_customised && $field === 'am_title' ) {
444 454
 			return array( 'rowspan' => '2', 'class' => $field );
Please login to merge, or discard this patch.
includes/specials/pagers/CategoryPager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -179,6 +179,9 @@
 block discarded – undo
179 179
 		return Html::rawElement( 'li', null, $this->getLanguage()->specialList( $link, $count ) ) . "\n";
180 180
 	}
181 181
 
182
+	/**
183
+	 * @param string $from
184
+	 */
182 185
 	public function getStartForm( $from ) {
183 186
 		return Xml::tags(
184 187
 			'form',
Please login to merge, or discard this patch.
includes/specials/pagers/NewPagesPager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected $mForm;
34 34
 
35
+	/**
36
+	 * @param SpecialNewpages $form
37
+	 */
35 38
 	function __construct( $form, FormOptions $opts ) {
36 39
 		parent::__construct( $form->getContext() );
37 40
 		$this->mForm = $form;
Please login to merge, or discard this patch.
includes/specials/pagers/ProtectedTitlesPager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -198,6 +198,12 @@
 block discarded – undo
198 198
 class ProtectedTitlesPager extends AlphabeticPager {
199 199
 	public $mForm, $mConds;
200 200
 
201
+	/**
202
+	 * @param SpecialProtectedtitles $form
203
+	 * @param null|string $type
204
+	 * @param null|string $level
205
+	 * @param integer|null $namespace
206
+	 */
201 207
 	function __construct( $form, $conds = array(), $type, $level, $namespace,
202 208
 		$sizetype = '', $size = 0
203 209
 	) {
Please login to merge, or discard this patch.
includes/specials/SpecialDeletedContributions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 	/**
129 129
 	 * Generates the subheading with links
130 130
 	 * @param User $userObj User object for the target
131
-	 * @return string Appropriately-escaped HTML to be output literally
131
+	 * @return Message Appropriately-escaped HTML to be output literally
132 132
 	 * @todo FIXME: Almost the same as contributionsSub in SpecialContributions.php. Could be combined.
133 133
 	 */
134 134
 	function getSubTitle( $userObj ) {
Please login to merge, or discard this patch.
includes/parser/Preprocessor.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
 	 *
57 57
 	 * @param string $text
58 58
 	 * @param int $flags
59
+	 * @param string $tree
59 60
 	 */
60 61
 	protected function cacheSetTree( $text, $flags, $tree ) {
61 62
 		$config = RequestContext::getMain()->getConfig();
@@ -84,7 +85,7 @@  discard block
 block discarded – undo
84 85
 	 *
85 86
 	 * @param string $text
86 87
 	 * @param int $flags
87
-	 * @return PPNode_Hash_Tree|bool
88
+	 * @return false|string
88 89
 	 */
89 90
 	protected function cacheGetTree( $text, $flags ) {
90 91
 		$config = RequestContext::getMain()->getConfig();
@@ -128,7 +129,7 @@  discard block
 block discarded – undo
128 129
 	 * Create a new custom frame for programmatic use of parameter replacement
129 130
 	 * as used in some extensions.
130 131
 	 *
131
-	 * @param array $args
132
+	 * @param boolean $args
132 133
 	 *
133 134
 	 * @return PPFrame
134 135
 	 */
@@ -182,7 +183,7 @@  discard block
 block discarded – undo
182 183
 
183 184
 	/**
184 185
 	 * Expand a document tree node, caching the result on its parent with the given key
185
-	 * @param string|int $key
186
+	 * @param string $key
186 187
 	 * @param string|PPNode $root
187 188
 	 * @param int $flags
188 189
 	 * @return string
@@ -201,7 +202,6 @@  discard block
 block discarded – undo
201 202
 	 * Implode with flags for expand()
202 203
 	 * @param string $sep
203 204
 	 * @param int $flags
204
-	 * @param string|PPNode $args,...
205 205
 	 * @return string
206 206
 	 */
207 207
 	public function implodeWithFlags( $sep, $flags /*, ... */ );
@@ -209,7 +209,6 @@  discard block
 block discarded – undo
209 209
 	/**
210 210
 	 * Implode with no flags specified
211 211
 	 * @param string $sep
212
-	 * @param string|PPNode $args,...
213 212
 	 * @return string
214 213
 	 */
215 214
 	public function implode( $sep /*, ... */ );
@@ -218,7 +217,6 @@  discard block
 block discarded – undo
218 217
 	 * Makes an object that, when expand()ed, will be the same as one obtained
219 218
 	 * with implode()
220 219
 	 * @param string $sep
221
-	 * @param string|PPNode $args,...
222 220
 	 * @return PPNode
223 221
 	 */
224 222
 	public function virtualImplode( $sep /*, ... */ );
@@ -228,7 +226,6 @@  discard block
 block discarded – undo
228 226
 	 * @param string $start
229 227
 	 * @param string $sep
230 228
 	 * @param string $end
231
-	 * @param string|PPNode $args,...
232 229
 	 * @return PPNode
233 230
 	 */
234 231
 	public function virtualBracketedImplode( $start, $sep, $end /*, ... */ );
@@ -260,7 +257,7 @@  discard block
 block discarded – undo
260 257
 
261 258
 	/**
262 259
 	 * Get an argument to this frame by name
263
-	 * @param int|string $name
260
+	 * @param string $name
264 261
 	 * @return string|bool
265 262
 	 */
266 263
 	public function getArgument( $name );
@@ -289,6 +286,7 @@  discard block
 block discarded – undo
289 286
 	 * to respect it, and it may be removed in the future.
290 287
 	 *
291 288
 	 * @param bool $flag
289
+	 * @return void
292 290
 	 */
293 291
 	public function setVolatile( $flag = true );
294 292
 
@@ -325,6 +323,7 @@  discard block
 block discarded – undo
325 323
 	 *
326 324
 	 * @see self::getTTL()
327 325
 	 * @param int $ttl
326
+	 * @return void
328 327
 	 */
329 328
 	public function setTTL( $ttl );
330 329
 
Please login to merge, or discard this patch.