Browse Source

Minor - Spacing

Yannick Warnier 8 years ago
parent
commit
9080363d48
1 changed files with 11 additions and 10 deletions
  1. 11 10
      main/inc/lib/pear/HTML/QuickForm/Rule/MinText.php

+ 11 - 10
main/inc/lib/pear/HTML/QuickForm/Rule/MinText.php

@@ -1,21 +1,22 @@
 <?php
 /* For licensing terms, see /license.txt */
+
 /**
  * QuickForm rule to check a text field has a minimum of X chars
  * @package chamilo.include
  */
 class Html_Quickform_Rule_MinText extends HTML_QuickForm_Rule
 {
-	/**
-	 * Function to check a text field has a minimum of X chars
-	 * @see HTML_QuickForm_Rule
-	 * @param string $text A text
+    /**
+     * Function to check a text field has a minimum of X chars
+     * @see HTML_QuickForm_Rule
+     * @param string $text A text
      * @param int $count The minimum number of characters that the text should contain
-	 * @return boolean True if text has the minimum number of chars required
-	 */
-	function validate($text, $count)
-	{
-		$checkMinText = create_function('$a,$b', 'return strlen(utf8_decode($a)) >= $b;');
+     * @return boolean True if text has the minimum number of chars required
+     */
+    function validate($text, $count)
+    {
+        $checkMinText = create_function('$a,$b', 'return strlen(utf8_decode($a)) >= $b;');
         return $checkMinText($text, $count);
-	}
+    }
 }