X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FConverterRule.php;h=e6625c1a2ad66018c9026eabbe80e38f1b48eff2;hb=dd587fb99cb24f0e2db4ca8a4107e1da5ba6ba3a;hp=40910413ebfb4b6dcc4ba45e229bcedbc4c5fec0;hpb=4ffd332c599c221c75dce7e9a905bdecd5d4d7c2;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/ConverterRule.php b/languages/ConverterRule.php index 40910413eb..e6625c1a2a 100644 --- a/languages/ConverterRule.php +++ b/languages/ConverterRule.php @@ -206,7 +206,7 @@ class ConverterRule { * Parse rules conversion. * @private * - * @param $variant + * @param string $variant * * @return string */ @@ -251,8 +251,8 @@ class ConverterRule { * will be ignored and the original title is shown). * * @since 1.22 - * @param $variant The variant code to display page title in - * @return String|false The converted title or false if just page name + * @param string $variant The variant code to display page title in + * @return string|bool The converted title or false if just page name */ function getRuleConvertedTitle( $variant ) { if ( $variant === $this->mConverter->mMainLanguageCode ) { @@ -445,10 +445,11 @@ class ConverterRule { } /** - * @todo FIXME: code this function :) + * Checks if there are conversion rules. + * @return bool */ public function hasRules() { - // TODO: + return $this->mRules !== ''; } /**