@@ 261-262 (lines=2) @@ | ||
258 | ||
259 | protected function validateLength( $v ) { |
|
260 | ||
261 | if( isset($this->rules['min_length']) && mb_strlen($v) < $this->rules['min_length'] ) |
|
262 | return Error::TOO_SHORT; |
|
263 | ||
264 | if( isset($this->rules['max_length']) && mb_strlen($v) > $this->rules['max_length'] ) |
|
265 | return Error::TOO_LONG; |
|
@@ 264-265 (lines=2) @@ | ||
261 | if( isset($this->rules['min_length']) && mb_strlen($v) < $this->rules['min_length'] ) |
|
262 | return Error::TOO_SHORT; |
|
263 | ||
264 | if( isset($this->rules['max_length']) && mb_strlen($v) > $this->rules['max_length'] ) |
|
265 | return Error::TOO_LONG; |
|
266 | ||
267 | return Error::NONE; |
|
268 |