| @@ 44-46 (lines=3) @@ | ||
| 41 | */ |
|
| 42 | public static function checkMinLength($field, $minLength, $msg) |
|
| 43 | { |
|
| 44 | if ((StringUtils::isEmpty($field) === false) && mb_strlen($field) < $minLength) { |
|
| 45 | throw new MsgException($msg); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| @@ 58-60 (lines=3) @@ | ||
| 55 | */ |
|
| 56 | public static function checkLength($field, $length, $msg) |
|
| 57 | { |
|
| 58 | if ((StringUtils::isEmpty($field) === false) && mb_strlen($field) != $length) { |
|
| 59 | throw new MsgException($msg); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|