aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Form/ButtonElement.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Form/ButtonElement.php')
-rw-r--r--inc/Form/ButtonElement.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/Form/ButtonElement.php b/inc/Form/ButtonElement.php
index 3e110c62d..b68554a8c 100644
--- a/inc/Form/ButtonElement.php
+++ b/inc/Form/ButtonElement.php
@@ -20,7 +20,7 @@ class ButtonElement extends Element
*/
public function __construct($name, $content = '')
{
- parent::__construct('button', array('name' => $name, 'value' => 1));
+ parent::__construct('button', ['name' => $name, 'value' => 1]);
$this->content = $content;
}
@@ -31,7 +31,6 @@ class ButtonElement extends Element
*/
public function toHTML()
{
- return '<button ' . buildAttributes($this->attrs(), true) . '>'.$this->content.'</button>';
+ return '<button ' . buildAttributes($this->attrs(), true) . '>' . $this->content . '</button>';
}
-
}