瀏覽代碼

added trim for string

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

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

82
             throw new LuDboConstraintException("String length must be smaller or equal to ${max}");
82
             throw new LuDboConstraintException("String length must be smaller or equal to ${max}");
83
         }
83
         }
84
     }
84
     }
85
+    
86
+    public function trim()
87
+    {
88
+        $this->_value = trim($this->_value);
89
+    }
85
 }
90
 }

Loading…
取消
儲存