Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
xzusoft committed Feb 21, 2020
1 parent c4d27f8 commit a8f5d53
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
19 changes: 6 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
{
"name": "xzusoft/validate",
"description": "验证器",
"type": "library",
"description": "An efficient swoole framework",
"keywords": [
"swoole",
"framework",
"async",
"easyswoole"
],
"homepage": "https://www.xzusoft.com/",
"require": {
"php": ">=7.1.0",
"easyswoole/spl": "^1.0"
},
"license": "Apache-2.0",
"authors": [
{
"name": "xzusoft",
"name": "xzsoft",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.1.0",
"easyswoole/spl": "^1.0"
},
"autoload": {
"psr-4": {
"Xzusoft\\Validate\\": "src/"
Expand Down
11 changes: 7 additions & 4 deletions src/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
* Time: 下午12:56
*/

namespace EasySwoole\Validate;
namespace Xzusoft\Validate;

/**
* 错误消息
* Class Error
* @revise : 2018-11-15 by eValor
* @package EasySwoole\Validate
*
* @package Xzusoft\Validate
* @author : jingzhou
* @email : [email protected]
* @date : 2020/2/21 23:52
* @desc : 错误消息
*/
class Error
{
Expand Down
14 changes: 9 additions & 5 deletions src/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
* Time: 上午12:41
*/

namespace EasySwoole\Validate;

namespace Xzusoft\Validate;
/**
* 校验规则
* 请以首字母排序校验方法以便后期维护
*
* Class Rule
* @package EasySwoole\Validate
*
* @package Xzusoft\Validate
* @author : jingzhou
* @email : [email protected]
* @date : 2020/2/21 23:53
* @desc : 校验规则 请以首字母排序校验方法以便后期维护
*/

class Rule
{
protected $ruleMap = [];
Expand Down
4 changes: 2 additions & 2 deletions src/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* Time: 上午12:41
*/

namespace EasySwoole\Validate;
namespace Xzusoft\Validate;


use EasySwoole\Spl\SplArray;

/**
* 数据验证器
* Class Validate
* @package EasySwoole\Validate
* @package Xzusoft\Validate;
*/
class Validate
{
Expand Down

0 comments on commit a8f5d53

Please sign in to comment.