Skip to content

Commit d90fc02

Browse files
committed
refactor: by rector
1 parent 36c0de9 commit d90fc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Validation/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function matches($str, string $field, array $data): bool
187187
return $str === dot_array_search($field, $data);
188188
}
189189

190-
return isset($data[$field]) ? ($str === $data[$field]) : false;
190+
return isset($data[$field]) && $str === $data[$field];
191191
}
192192

193193
/**

0 commit comments

Comments
 (0)