X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=5b10f0f047315749b469cb42860c3d53edf8aa9b;hb=21e0c1c53326fcff9e52604144cf254fadde57fa;hp=88d0f23eba9ae69ae5f6fd7acfbddccf835755de;hpb=e219e90fda3dc29e421e74b7fd5085e87f7155ef;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 88d0f23eba..5b10f0f047 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -345,7 +345,7 @@ class Language { /** * Returns true if a language code is an IETF tag known to MediaWiki. * - * @param string $code + * @param string $tag * * @since 1.21 * @return bool @@ -2351,7 +2351,7 @@ class Language { * Get the formatted date and time for the given timestamp and formatted for * the given user. * - * @param mixed $ts the time format which needs to be turned into a + * @param mixed $ts The time format which needs to be turned into a * date('YmdHis') format with wfTimestamp(TS_MW,$ts) * @param User $user User object used to get preferences for timezone and format * @param array $options Array, can contain the following keys: @@ -3125,7 +3125,7 @@ class Language { */ function getMagic( $mw ) { // Saves a function call - if ( ! $this->mMagicHookDone ) { + if ( !$this->mMagicHookDone ) { $this->doMagicHook(); } @@ -3786,8 +3786,8 @@ class Language { * * @since 1.23 * - * @param int $count non-localized number - * @param array $forms different plural forms + * @param int $count Non-localized number + * @param array $forms Different plural forms * * @return array|string */ @@ -3795,7 +3795,7 @@ class Language { foreach ( $forms as $index => $form ) { if ( preg_match( '/\d+=/i', $form ) ) { $pos = strpos( $form, '=' ); - if ( substr( $form, 0, $pos ) === (string) $count ) { + if ( substr( $form, 0, $pos ) === (string)$count ) { return substr( $form, $pos + 1 ); } unset( $forms[$index] ); @@ -3808,8 +3808,8 @@ class Language { * Checks that convertPlural was given an array and pads it to requested * amount of forms by copying the last one. * - * @param int $count How many forms should there be at least * @param array $forms Array of forms given to convertPlural + * @param int $count How many forms should there be at least * @return array Padded array of forms or an exception if not an array */ protected function preConvertPlural( /* Array */ $forms, $count ) { @@ -4024,12 +4024,12 @@ class Language { * possible that non-existing link in one variant * actually exists in another variant. this function * tries to find it. See e.g. LanguageZh.php + * The input parameters may be modified upon return * - * @param string $link The name of the link - * @param Title $nt The title object of the link + * @param string &$link The name of the link + * @param Title &$nt The title object of the link * @param bool $ignoreOtherCond To disable other conditions when * we need to transclude a template or update a category's link - * @return null the input parameters may be modified upon return */ public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { $this->mConverter->findVariantLink( $link, $nt, $ignoreOtherCond ); @@ -4443,7 +4443,7 @@ class Language { if ( !isset( $format['avoid'] ) ) { $format['avoid'] = false; } - if ( !isset( $format['noabbrevs' ] ) ) { + if ( !isset( $format['noabbrevs'] ) ) { $format['noabbrevs'] = false; } $secondsMsg = wfMessage(