language: Use item 'fallbackSequence' instead of duplicating logic
[lhc/web/wiklou.git] / languages / ConverterRule.php
index 4091041..e6625c1 100644 (file)
@@ -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 !== '';
        }
 
        /**