Skip to content

Commit acb8043

Browse files
Bug fixes
1 parent 0336741 commit acb8043

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/Validator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ function __construct() {
9595
public function validate($data, $multiple_data=false) : bool {
9696
$is_valid = true;
9797
$this->errors = [];
98-
$this->valid_data = [];
99-
$this->invalid_data = [];
10098

10199
//Convert users data type to array
102100
if(is_object($data)) {
@@ -110,7 +108,6 @@ public function validate($data, $multiple_data=false) : bool {
110108

111109
//Validate users data
112110
foreach($this->rules as $data_key => $rules) {
113-
$is_valid_data = true;
114111
if(is_array($rules)) {
115112
foreach($rules as $rule => $value) {
116113
$rule = strtolower($rule);

0 commit comments

Comments
 (0)