Browse Source

Minor - format code.

Julio Montoya 9 years ago
parent
commit
e9679833e8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/inc/lib/pear/HTML/QuickForm/Rule/Compare.php

+ 3 - 3
main/inc/lib/pear/HTML/QuickForm/Rule/Compare.php

@@ -51,7 +51,6 @@ class HTML_QuickForm_Rule_Compare extends HTML_QuickForm_Rule
         '!='  => '!=='
     );
 
-
    /**
     * Returns the operator to use for comparing the values
     *
@@ -59,7 +58,8 @@ class HTML_QuickForm_Rule_Compare extends HTML_QuickForm_Rule
     * @param  string     operator name
     * @return string     operator to use for validation
     */
-    function _findOperator($name) {
+    function _findOperator($name)
+    {
         $name = trim($name);
         if (empty($name)) {
             return '===';
@@ -76,6 +76,7 @@ class HTML_QuickForm_Rule_Compare extends HTML_QuickForm_Rule
     function validate($values, $operator = null)
     {
         $operator = $this->_findOperator($operator);
+
         if ('===' != $operator && '!==' != $operator) {
             $compareFn = create_function('$a, $b', 'return floatval($a) ' . $operator . ' floatval($b);');
         } else {
@@ -97,4 +98,3 @@ class HTML_QuickForm_Rule_Compare extends HTML_QuickForm_Rule
         return array('', "'' != {jsVar}[0] && {$check}");
     }
 }
-?>