Skip to content

Commit fdd9ec8

Browse files
committed
refactor: by rector
1 parent c83e2ea commit fdd9ec8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)