| Conditions | 6 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 8 |
| Ratio | 47.06 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function validation($v,&$e) |
||
| 42 | { |
||
| 43 | $max = $this->max; |
||
| 44 | $min = $this->min; |
||
| 45 | |||
| 46 | View Code Duplication | if(null !== $max && $v > $max) |
|
| 47 | { |
||
| 48 | $e = sprintf( __("Value must be less than %d",'amarkal'), $max); |
||
| 49 | } |
||
| 50 | |||
| 51 | View Code Duplication | if(null !== $min && $v < $min) |
|
| 52 | { |
||
| 53 | $e = sprintf( __("Value must be greater than %d",'amarkal'), $min); |
||
| 54 | } |
||
| 55 | |||
| 56 | return $e ? false : true; |
||
| 57 | } |
||
| 58 | |||
| 68 | } |