fix: noverify --fix
This commit is contained in:
parent
5aff28d2b8
commit
117640a755
44 changed files with 174 additions and 174 deletions
|
|
@ -31,7 +31,7 @@ class Validator
|
|||
'reg' => 'ctiso\\Validator\\Rule\\PregMatch',
|
||||
);
|
||||
|
||||
function __construct($rules = array()) {
|
||||
function __construct($rules = []) {
|
||||
$this->addRuleList($rules);
|
||||
}
|
||||
|
||||
|
|
@ -100,11 +100,11 @@ class Validator
|
|||
|
||||
public function validate(Collection $container, $rule = null, $status = null)
|
||||
{
|
||||
$fields = array();
|
||||
$fields = [];
|
||||
if ($rule) {
|
||||
$this->chain = $rule;
|
||||
}
|
||||
$this->errorMsg = array();
|
||||
$this->errorMsg = [];
|
||||
foreach ($this->chain as $rule) {
|
||||
//echo $key;
|
||||
if (!in_array($rule->field, $fields) && !$this->skip($rule, $container) && !$rule->isValid($container, $status)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue