@@ 53-56 (lines=4) @@ | ||
50 | if (!\preg_match($this->pattern, $this->normalizeNumber($value))) { |
|
51 | return false; |
|
52 | } |
|
53 | if ($this->min !== null and $this->min > $value) { |
|
54 | $this->message = 'Value is too small'; |
|
55 | return false; |
|
56 | } |
|
57 | if ($this->max !== null and $this->max < $value) { |
|
58 | $this->message = 'Value is too big'; |
|
59 | return false; |
|
@@ 57-60 (lines=4) @@ | ||
54 | $this->message = 'Value is too small'; |
|
55 | return false; |
|
56 | } |
|
57 | if ($this->max !== null and $this->max < $value) { |
|
58 | $this->message = 'Value is too big'; |
|
59 | return false; |
|
60 | } |
|
61 | return true; |
|
62 | } |
|
63 | } |