Completed
Branch master (366b6b)
by
unknown
28:39
created
includes/WikiMap.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 *
110 110
 	 * @todo We can give more info than just the wiki id!
111 111
 	 * @param string $wikiID Wiki'd id (generally database name)
112
-	 * @return string|int Wiki's name or $wiki_id if the wiki was not found
112
+	 * @return string|null Wiki's name or $wiki_id if the wiki was not found
113 113
 	 */
114 114
 	public static function getWikiName( $wikiID ) {
115 115
 		$wiki = WikiMap::getWiki( $wikiID );
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * @param string $page Page name (must be normalised before calling this function!)
161 161
 	 * @param string|null $fragmentId
162 162
 	 *
163
-	 * @return string|bool URL or false if the wiki was not found
163
+	 * @return string|false URL or false if the wiki was not found
164 164
 	 */
165 165
 	public static function getForeignURL( $wikiID, $page, $fragmentId = null ) {
166 166
 		$wiki = WikiMap::getWiki( $wikiID );
Please login to merge, or discard this patch.
includes/Xml.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	 * @param string $inLanguage The ISO code of the language to display the select list in (optional)
200 200
 	 * @param array $overrideAttrs Override the attributes of the select tag (since 1.20)
201 201
 	 * @param Message|null $msg Label message key (since 1.20)
202
-	 * @return array Array containing 2 items: label HTML and select list HTML
202
+	 * @return string[] Array containing 2 items: label HTML and select list HTML
203 203
 	 */
204 204
 	public static function languageSelector( $selected, $customisedOnly = true,
205 205
 		$inLanguage = null, $overrideAttrs = array(), Message $msg = null
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 	 * @param string $label Text of the label
374 374
 	 * @param string $name Value of the name attribute
375 375
 	 * @param string $id Id of the input
376
-	 * @param int|bool $size Value of the size attribute
376
+	 * @param integer $size Value of the size attribute
377 377
 	 * @param string|bool $value Value of the value attribute
378 378
 	 * @param array $attribs Other attributes
379 379
 	 * @return string HTML
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 	 * @param string|bool $value
396 396
 	 * @param array $attribs
397 397
 	 *
398
-	 * @return array
398
+	 * @return string[]
399 399
 	 */
400 400
 	public static function inputLabelSep( $label, $name, $id, $size = false,
401 401
 		$value = false, $attribs = array()
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 	 *    which evaluates to a function object which is called.
678 678
 	 * @param array $args The arguments to pass to the function.
679 679
 	 * @param bool $pretty If true, add non-significant whitespace to improve readability.
680
-	 * @return string|bool String if successful; false upon failure
680
+	 * @return false|string String if successful; false upon failure
681 681
 	 */
682 682
 	public static function encodeJsCall( $name, $args, $pretty = false ) {
683 683
 		foreach ( $args as &$arg ) {
Please login to merge, or discard this patch.
includes/XmlSelect.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	}
52 52
 
53 53
 	/**
54
-	 * @param string|array $tagName
54
+	 * @param string $tagName
55 55
 	 */
56 56
 	public function setTagName( $tagName ) {
57 57
 		$this->tagName = $tagName;
Please login to merge, or discard this patch.
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.