Completed
Push — master ( c5aa4f...a09810 )
by Michael
02:13
created
class/form/elements/smartformtextelement.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -11,24 +11,24 @@
 block discarded – undo
11 11
  */
12 12
 class SmartFormTextElement extends XoopsFormText
13 13
 {
14
-    /**
15
-     * SmartFormTextElement constructor.
16
-     * @param string $object
17
-     * @param string $key
18
-     */
19
-    public function __construct($object, $key)
20
-    {
21
-        $var = $object->vars[$key];
14
+	/**
15
+	 * SmartFormTextElement constructor.
16
+	 * @param string $object
17
+	 * @param string $key
18
+	 */
19
+	public function __construct($object, $key)
20
+	{
21
+		$var = $object->vars[$key];
22 22
 
23
-        if (isset($object->controls[$key])) {
24
-            $control        = $object->controls[$key];
25
-            $form_maxlength = isset($control['maxlength']) ? $control['maxlength'] : (isset($var['maxlength']) ? $var['maxlength'] : 255);
26
-            $form_size      = isset($control['size']) ? $control['size'] : 50;
27
-        } else {
28
-            $form_maxlength = 255;
29
-            $form_size      = 50;
30
-        }
23
+		if (isset($object->controls[$key])) {
24
+			$control        = $object->controls[$key];
25
+			$form_maxlength = isset($control['maxlength']) ? $control['maxlength'] : (isset($var['maxlength']) ? $var['maxlength'] : 255);
26
+			$form_size      = isset($control['size']) ? $control['size'] : 50;
27
+		} else {
28
+			$form_maxlength = 255;
29
+			$form_size      = 50;
30
+		}
31 31
 
32
-        parent::__construct($var['form_caption'], $key, $form_size, $form_maxlength, $object->getVar($key, 'e'));
33
-    }
32
+		parent::__construct($var['form_caption'], $key, $form_size, $form_maxlength, $object->getVar($key, 'e'));
33
+	}
34 34
 }
Please login to merge, or discard this patch.
class/form/elements/smartformdateelement.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
  */
12 12
 class SmartFormDateElement extends XoopsFormTextDateSelect
13 13
 {
14
-    /**
15
-     * SmartFormDateElement constructor.
16
-     * @param $object
17
-     * @param $key
18
-     */
19
-    public function __construct($object, $key)
20
-    {
21
-        parent::__construct($object->vars[$key]['form_caption'], $key, 15, $object->getVar($key, 'e'));
22
-    }
14
+	/**
15
+	 * SmartFormDateElement constructor.
16
+	 * @param $object
17
+	 * @param $key
18
+	 */
19
+	public function __construct($object, $key)
20
+	{
21
+		parent::__construct($object->vars[$key]['form_caption'], $key, 15, $object->getVar($key, 'e'));
22
+	}
23 23
 }
Please login to merge, or discard this patch.
class/form/elements/smartformlanguageelement.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@
 block discarded – undo
11 11
  */
12 12
 class SmartFormLanguageElement extends XoopsFormSelectLang
13 13
 {
14
-    /**
15
-     * SmartFormLanguageElement constructor.
16
-     * @param string $object
17
-     * @param string $key
18
-     */
19
-    public function __construct($object, $key)
20
-    {
21
-        $var     = $object->vars[$key];
22
-        $control = $object->controls[$key];
23
-        $all     = isset($control['all']) ? true : false;
14
+	/**
15
+	 * SmartFormLanguageElement constructor.
16
+	 * @param string $object
17
+	 * @param string $key
18
+	 */
19
+	public function __construct($object, $key)
20
+	{
21
+		$var     = $object->vars[$key];
22
+		$control = $object->controls[$key];
23
+		$all     = isset($control['all']) ? true : false;
24 24
 
25
-        parent::__construct($var['form_caption'], $key, $object->getVar($key, 'e'));
26
-        if ($all) {
27
-            $this->addOption('all', _ALL);
28
-        }
29
-    }
25
+		parent::__construct($var['form_caption'], $key, $object->getVar($key, 'e'));
26
+		if ($all) {
27
+			$this->addOption('all', _ALL);
28
+		}
29
+	}
30 30
 }
Please login to merge, or discard this patch.
class/form/elements/smartformsection.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -6,41 +6,41 @@
 block discarded – undo
6 6
  */
7 7
 class SmartFormSection extends XoopsFormElement
8 8
 {
9
-    /**
10
-     * Text
11
-     * @var string
12
-     * @access  private
13
-     */
14
-    public $_value;
9
+	/**
10
+	 * Text
11
+	 * @var string
12
+	 * @access  private
13
+	 */
14
+	public $_value;
15 15
 
16
-    /**
17
-     * SmartFormSection constructor.
18
-     * @param      $sectionname
19
-     * @param bool $value
20
-     */
21
-    public function __construct($sectionname, $value = false)
22
-    {
23
-        $this->setName($sectionname);
24
-        $this->_value = $value;
25
-    }
16
+	/**
17
+	 * SmartFormSection constructor.
18
+	 * @param      $sectionname
19
+	 * @param bool $value
20
+	 */
21
+	public function __construct($sectionname, $value = false)
22
+	{
23
+		$this->setName($sectionname);
24
+		$this->_value = $value;
25
+	}
26 26
 
27
-    /**
28
-     * Get the text
29
-     *
30
-     * @return string
31
-     */
32
-    public function getValue()
33
-    {
34
-        return $this->_value;
35
-    }
27
+	/**
28
+	 * Get the text
29
+	 *
30
+	 * @return string
31
+	 */
32
+	public function getValue()
33
+	{
34
+		return $this->_value;
35
+	}
36 36
 
37
-    /**
38
-     * Prepare HTML for output
39
-     *
40
-     * @return string
41
-     */
42
-    public function render()
43
-    {
44
-        return $this->getValue();
45
-    }
37
+	/**
38
+	 * Prepare HTML for output
39
+	 *
40
+	 * @return string
41
+	 */
42
+	public function render()
43
+	{
44
+		return $this->getValue();
45
+	}
46 46
 }
Please login to merge, or discard this patch.
class/form/elements/smartformemailelement.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
  */
36 36
 class SmartFormSelectElement extends XoopsFormElement
37 37
 {
38
-    /**
39
-     * @param  bool $withtags
40
-     * @return string
41
-     */
42
-    public function renderValidationJS($withtags = true)
43
-    {
44
-        $js = '';
38
+	/**
39
+	 * @param  bool $withtags
40
+	 * @return string
41
+	 */
42
+	public function renderValidationJS($withtags = true)
43
+	{
44
+		$js = '';
45 45
 
46
-        return $js;
47
-    }
46
+		return $js;
47
+	}
48 48
 }
Please login to merge, or discard this patch.
class/form/elements/smartformdate_timeelement.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
  */
12 12
 class SmartFormDate_timeElement extends XoopsFormDateTime
13 13
 {
14
-    /**
15
-     * SmartFormDate_timeElement constructor.
16
-     * @param mixed $object
17
-     * @param mixed $key
18
-     */
19
-    public function __construct($object, $key)
20
-    {
21
-        parent::__construct($object->vars[$key]['form_caption'], $key, 15, $object->getVar($key, 'e'));
22
-    }
14
+	/**
15
+	 * SmartFormDate_timeElement constructor.
16
+	 * @param mixed $object
17
+	 * @param mixed $key
18
+	 */
19
+	public function __construct($object, $key)
20
+	{
21
+		parent::__construct($object->vars[$key]['form_caption'], $key, 15, $object->getVar($key, 'e'));
22
+	}
23 23
 }
Please login to merge, or discard this patch.
class/form/elements/smartformsectionclose.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -6,41 +6,41 @@
 block discarded – undo
6 6
  */
7 7
 class SmartFormSectionClose extends XoopsFormElement
8 8
 {
9
-    /**
10
-     * Text
11
-     * @var string
12
-     * @access  private
13
-     */
14
-    public $_value;
9
+	/**
10
+	 * Text
11
+	 * @var string
12
+	 * @access  private
13
+	 */
14
+	public $_value;
15 15
 
16
-    /**
17
-     * SmartFormSectionClose constructor.
18
-     * @param      $sectionname
19
-     * @param bool $value
20
-     */
21
-    public function __construct($sectionname, $value = false)
22
-    {
23
-        $this->setName($sectionname);
24
-        $this->_value = $value;
25
-    }
16
+	/**
17
+	 * SmartFormSectionClose constructor.
18
+	 * @param      $sectionname
19
+	 * @param bool $value
20
+	 */
21
+	public function __construct($sectionname, $value = false)
22
+	{
23
+		$this->setName($sectionname);
24
+		$this->_value = $value;
25
+	}
26 26
 
27
-    /**
28
-     * Get the text
29
-     *
30
-     * @return string
31
-     */
32
-    public function getValue()
33
-    {
34
-        return $this->_value;
35
-    }
27
+	/**
28
+	 * Get the text
29
+	 *
30
+	 * @return string
31
+	 */
32
+	public function getValue()
33
+	{
34
+		return $this->_value;
35
+	}
36 36
 
37
-    /**
38
-     * Prepare HTML for output
39
-     *
40
-     * @return string
41
-     */
42
-    public function render()
43
-    {
44
-        return $this->getValue();
45
-    }
37
+	/**
38
+	 * Prepare HTML for output
39
+	 *
40
+	 * @return string
41
+	 */
42
+	public function render()
43
+	{
44
+		return $this->getValue();
45
+	}
46 46
 }
Please login to merge, or discard this patch.
class/form/elements/smartformselect_multielement.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
  */
17 17
 class SmartFormSelect_multiElement extends SmartFormSelectElement
18 18
 {
19
-    /**
20
-     * SmartFormSelect_multiElement constructor.
21
-     * @param string $object
22
-     * @param string $key
23
-     */
24
-    public function __construct($object, $key)
25
-    {
26
-        $this->multiple = true;
27
-        parent::__construct($object, $key);
28
-    }
19
+	/**
20
+	 * SmartFormSelect_multiElement constructor.
21
+	 * @param string $object
22
+	 * @param string $key
23
+	 */
24
+	public function __construct($object, $key)
25
+	{
26
+		$this->multiple = true;
27
+		parent::__construct($object, $key);
28
+	}
29 29
 }
Please login to merge, or discard this patch.
class/form/elements/smartformautocompleteelement.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@
 block discarded – undo
11 11
  */
12 12
 class SmartFormAutocompleteElement extends SmartAutocompleteElement
13 13
 {
14
-    /**
15
-     * SmartFormAutocompleteElement constructor.
16
-     * @param string $object
17
-     * @param string $key
18
-     */
19
-    public function __construct($object, $key)
20
-    {
21
-        $var            = $object->vars[$key];
22
-        $control        = $object->controls[$key];
23
-        $form_maxlength = isset($control['maxlength']) ? $control['maxlength'] : (isset($var['maxlength']) ? $var['maxlength'] : 255);
14
+	/**
15
+	 * SmartFormAutocompleteElement constructor.
16
+	 * @param string $object
17
+	 * @param string $key
18
+	 */
19
+	public function __construct($object, $key)
20
+	{
21
+		$var            = $object->vars[$key];
22
+		$control        = $object->controls[$key];
23
+		$form_maxlength = isset($control['maxlength']) ? $control['maxlength'] : (isset($var['maxlength']) ? $var['maxlength'] : 255);
24 24
 
25
-        $form_size = isset($control['size']) ? $control['size'] : 50;
26
-        parent::__construct($var['form_caption'], $key, $form_size, $form_maxlength, $object->getVar($key, 'e'));
27
-    }
25
+		$form_size = isset($control['size']) ? $control['size'] : 50;
26
+		parent::__construct($var['form_caption'], $key, $form_size, $form_maxlength, $object->getVar($key, 'e'));
27
+	}
28 28
 }
Please login to merge, or discard this patch.