瀏覽代碼

added not empty check for string

develop
Robin Thoni 10 年之前
父節點
當前提交
a45d2c3d29
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/Utils/Dbo/LuStringDbo.php

+ 5
- 0
src/Utils/Dbo/LuStringDbo.php 查看文件

64
         }
64
         }
65
     }
65
     }
66
 
66
 
67
+    public function notEmpty($trim = true)
68
+    {
69
+        static::min(1, $trim);
70
+    }
71
+
67
     public function min($min, $trim = true)
72
     public function min($min, $trim = true)
68
     {
73
     {
69
         if (self::getLength($trim) < $min) {
74
         if (self::getLength($trim) < $min) {

Loading…
取消
儲存