@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | 'required' => false, |
28 | 28 | 'readonly' => false, |
29 | 29 | 'default' => null, |
30 | - 'filter' => array( $this, 'filter' ), |
|
31 | - 'validation' => array( $this, 'validation' ) |
|
30 | + 'filter' => array($this, 'filter'), |
|
31 | + 'validation' => array($this, 'validation') |
|
32 | 32 | ); |
33 | 33 | } |
34 | 34 | |
@@ -37,19 +37,19 @@ discard block |
||
37 | 37 | return floatval($v); |
38 | 38 | } |
39 | 39 | |
40 | - public function validation($v,&$e) |
|
40 | + public function validation($v, &$e) |
|
41 | 41 | { |
42 | 42 | $max = $this->max; |
43 | 43 | $min = $this->min; |
44 | 44 | |
45 | - if(null !== $max && $v > $max) |
|
45 | + if (null !== $max && $v > $max) |
|
46 | 46 | { |
47 | - $e = sprintf( __("Value must be less than %d",'amarkal'), $max); |
|
47 | + $e = sprintf(__("Value must be less than %d", 'amarkal'), $max); |
|
48 | 48 | } |
49 | 49 | |
50 | - if(null !== $min && $v < $min) |
|
50 | + if (null !== $min && $v < $min) |
|
51 | 51 | { |
52 | - $e = sprintf( __("Value must be greater than %d",'amarkal'), $min); |
|
52 | + $e = sprintf(__("Value must be greater than %d", 'amarkal'), $min); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | return $e ? false : true; |