Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 44054a716f
commit 21577735a1
  1. 5
      main/inc/lib/formvalidator/Element/HtmlEditor.php
  2. 17
      main/inc/lib/pear/HTML/QuickForm/textarea.php

@ -27,11 +27,10 @@ class HtmlEditor extends HTML_QuickForm_textarea
public function __construct(
$name = null,
$elementLabel = null,
$attributes = null,
$config = array()
$attributes = [],
$config = []
) {
if (empty($name)) {
return false;
}

@ -34,8 +34,6 @@
*/
class HTML_QuickForm_textarea extends HTML_QuickForm_element
{
// {{{ properties
/**
* Field value
* @var string
@ -43,8 +41,6 @@ class HTML_QuickForm_textarea extends HTML_QuickForm_element
* @access private
*/
public $_value = null;
// }}}
// {{{ constructor
/**
* Class constructor
@ -54,20 +50,19 @@ class HTML_QuickForm_textarea extends HTML_QuickForm_element
* @param mixed Either a typical HTML attribute string or an associative array
* @since 1.0
* @access public
* @return void
*/
public function __construct($elementName=null, $elementLabel=null, $attributes=null)
{
public function __construct(
$elementName = null,
$elementLabel = null,
$attributes = null
) {
$attributes['class'] = isset($attributes['class']) ? $attributes['class'] : 'form-control';
$columnsSize = isset($attributes['cols-size']) ? $attributes['cols-size'] : null;
$this->setColumnsSize($columnsSize);
parent::__construct($elementName, $elementLabel, $attributes);
$this->_persistantFreeze = true;
$this->_type = 'textarea';
} //end constructor
// }}}
// {{{ setName()
}
/**
* Sets the input field name

Loading…
Cancel
Save