@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | 'required' => false, |
26 | 26 | 'readonly' => false, |
27 | 27 | 'default' => null, |
28 | - 'filter' => array( $this, 'filter' ), |
|
29 | - 'validation' => array( $this, 'validation' ) |
|
28 | + 'filter' => array($this, 'filter'), |
|
29 | + 'validation' => array($this, 'validation') |
|
30 | 30 | ); |
31 | 31 | } |
32 | 32 | |
@@ -35,17 +35,17 @@ discard block |
||
35 | 35 | return floatval($v); |
36 | 36 | } |
37 | 37 | |
38 | - public function validation($v,&$e) |
|
38 | + public function validation($v, &$e) |
|
39 | 39 | { |
40 | 40 | $max = $this->max; |
41 | 41 | $min = $this->min; |
42 | 42 | |
43 | - if(null !== $max && $v > $max) |
|
43 | + if (null !== $max && $v > $max) |
|
44 | 44 | { |
45 | 45 | $e = "must be less than {$max}"; |
46 | 46 | } |
47 | 47 | |
48 | - if(null !== $min && $v < $min) |
|
48 | + if (null !== $min && $v < $min) |
|
49 | 49 | { |
50 | 50 | $e = "must be greater than {$min}"; |
51 | 51 | } |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_number |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | public $component_type = 'number'; |
16 | 16 |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_textarea |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | public $component_type = 'textarea'; |
16 | 16 |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_text |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | public $component_type = 'text'; |
16 | 16 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class Component_radio |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface |
|
11 | + DisableableComponentInterface |
|
12 | 12 | { |
13 | 13 | public $component_type = 'radio'; |
14 | 14 |