diff options
author | Marvin Borner | 2018-05-23 22:23:28 +0200 |
---|---|---|
committer | Marvin Borner | 2018-05-23 22:23:28 +0200 |
commit | b66a61addb6c8e66cb26fcf74b532d68891267e4 (patch) | |
tree | 05e9449ff25bdc98f68105f41923ccb9f6ef5095 /main/app/sprinkles/FormGenerator/src/Element/BaseInput.php | |
parent | 1d4ef435177a5f9b6d1a289800d933e49be0c550 (diff) |
Refactored code, many fixes and improvements in chat backend+frontend
Diffstat (limited to 'main/app/sprinkles/FormGenerator/src/Element/BaseInput.php')
-rw-r--r-- | main/app/sprinkles/FormGenerator/src/Element/BaseInput.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/app/sprinkles/FormGenerator/src/Element/BaseInput.php b/main/app/sprinkles/FormGenerator/src/Element/BaseInput.php index d892001..cf78dc6 100644 --- a/main/app/sprinkles/FormGenerator/src/Element/BaseInput.php +++ b/main/app/sprinkles/FormGenerator/src/Element/BaseInput.php @@ -6,6 +6,7 @@ * @copyright Copyright (c) 2017 Louis Charette * @license https://github.com/lcharette/UF_FormGenerator/blob/master/LICENSE (MIT License) */ + namespace UserFrosting\Sprinkle\FormGenerator\Element; use UserFrosting\Sprinkle\FormGenerator\Element\InputInterface; @@ -20,7 +21,8 @@ use UserFrosting\Sprinkle\Core\Facades\Debug; * @abstract * @implements InputInterface */ -abstract class BaseInput implements InputInterface { +abstract class BaseInput implements InputInterface +{ /** * @var String The name of the input. @@ -46,8 +48,7 @@ abstract class BaseInput implements InputInterface { * @param mixed $value (default: null) * @return void */ - public function __construct($name, $element, $value = null) - { + public function __construct($name, $element, $value = NULL) { $this->name = $name; $this->element = $element; $this->value = $value; @@ -60,8 +61,7 @@ abstract class BaseInput implements InputInterface { * @access public * @return void */ - public function parse() - { + public function parse() { $this->applyTransformations(); return $this->element; } @@ -89,7 +89,7 @@ abstract class BaseInput implements InputInterface { * @return string The input current value */ public function getValue() { - if (isset($this->value) && $this->value !== null) { + if (isset($this->value) && $this->value !== NULL) { return $this->value; } else if (isset($this->element['default'])) { return $this->element['default']; |