Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfabiocarneiro <fahecs@gmail.com>2015-05-27 12:56:17 +0300
committerfabiocarneiro <fahecs@gmail.com>2015-05-27 12:56:17 +0300
commita2a63d34ebb460174e1a3e8d8022fe3e3ab4b469 (patch)
treefbfc480352bc711bc03f12849824507e56b5034a /core/QuickForm2.php
parentb2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff)
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/QuickForm2.php')
-rw-r--r--core/QuickForm2.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/QuickForm2.php b/core/QuickForm2.php
index e2ecbf5b3c..49b2167289 100644
--- a/core/QuickForm2.php
+++ b/core/QuickForm2.php
@@ -27,7 +27,7 @@ abstract class QuickForm2 extends HTML_QuickForm2
{
protected $a_formElements = array();
- function __construct($id, $method = 'post', $attributes = null, $trackSubmit = false)
+ public function __construct($id, $method = 'post', $attributes = null, $trackSubmit = false)
{
if (!isset($attributes['action'])) {
$attributes['action'] = Url::getCurrentQueryString();
@@ -43,7 +43,7 @@ abstract class QuickForm2 extends HTML_QuickForm2
/**
* Class specific initialization
*/
- abstract function init();
+ abstract public function init();
/**
* The elements in this form
@@ -77,7 +77,7 @@ abstract class QuickForm2 extends HTML_QuickForm2
return parent::addElement($elementOrType, $name, $attributes, $data);
}
- function setChecked($nameElement)
+ public function setChecked($nameElement)
{
foreach ($this->_elements as $key => $value) {
if ($value->_attributes['name'] == $nameElement) {
@@ -86,7 +86,7 @@ abstract class QuickForm2 extends HTML_QuickForm2
}
}
- function setSelected($nameElement, $value)
+ public function setSelected($nameElement, $value)
{
foreach ($this->_elements as $key => $value) {
if ($value->_attributes['name'] == $nameElement) {
@@ -101,7 +101,7 @@ abstract class QuickForm2 extends HTML_QuickForm2
* @param string $elementName
* @return mixed
*/
- function getSubmitValue($elementName)
+ public function getSubmitValue($elementName)
{
$value = $this->getValue();
return isset($value[$elementName]) ? $value[$elementName] : null;