Implemented hasRules()
authorEvan McIntire <mcintire.evan@gmail.com>
Mon, 29 Dec 2014 00:17:04 +0000 (19:17 -0500)
committerEvan McIntire <mcintire.evan@gmail.com>
Mon, 29 Dec 2014 00:37:29 +0000 (19:37 -0500)
hasRules() looks at $mRules and returns true for a non-empty string, and
false for an empty one

Change-Id: Ia7a1316498dc3f2753f61134705c9bd80fc9caeb

languages/ConverterRule.php

index a5e960f..e6625c1 100644 (file)
@@ -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 !== '';
        }
 
        /**