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( public function __construct(
$name = null, $name = null,
$elementLabel = null, $elementLabel = null,
$attributes = null, $attributes = [],
$config = array() $config = []
) { ) {
if (empty($name)) { if (empty($name)) {
return false; return false;
} }

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

Loading…
Cancel
Save