Browse Source

Minor - Format code

Julio Montoya 10 years ago
parent
commit
96fbeb1f0f
1 changed files with 7 additions and 9 deletions
  1. 7 9
      main/inc/lib/pear/HTML/Common.php

+ 7 - 9
main/inc/lib/pear/HTML/Common.php

@@ -77,7 +77,7 @@ class HTML_Common
      * @param    int     $tabOffset      Indent offset in tabs
      * @access   public
      */
-    function HTML_Common($attributes = null, $tabOffset = 0)
+    public function HTML_Common($attributes = null, $tabOffset = 0)
     {
         $this->setAttributes($attributes);
         $this->setTabOffset($tabOffset);
@@ -134,7 +134,7 @@ class HTML_Common
      * @return   string
      * @access   private
      */
-    function _getAttrString($attributes)
+    public function _getAttrString($attributes)
     {
         $strAttr = '';
 
@@ -143,16 +143,15 @@ class HTML_Common
             foreach ($attributes as $key => $value) {
             	// Modified by Ivan Tcholakov, 16-MAR-2010
                 $value = @htmlspecialchars($value, ENT_COMPAT, $charset);
-                $strAttr .= ' ' . $key . ' = "' . $value. '"';
+                $strAttr .= ' ' . $key . '= "' . $value. '"';
             }
         }
-
         return $strAttr;
-    } // end func _getAttrString
+    }
 
     /**
-     * Returns a valid atrributes array from either a string or array
-     * @param    mixed   $attributes     Either a typical HTML attribute string or an associative array
+     * Returns a valid attributes array from either a string or array
+     * @param    mixed   $attributes  Either a typical HTML attribute string or an associative array
      * @access   private
      * @return   array
      */
@@ -470,5 +469,4 @@ class HTML_Common
         }
         return $charset;
     } // end func charset
-} // end class HTML_Common
-?>
+}