Skip to content

Commit 6710986

Browse files
Update system/Validation/Rules.php
Co-authored-by: Mostafa Khudair <59371810+mostafakhudair@users.noreply.github.com>
1 parent 2d33df9 commit 6710986

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

system/Validation/Rules.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,13 @@ public function required_without($str = null, string $fields, array $data): bool
422422

423423
// Still here? Then we fail this test if
424424
// any of the fields are not present in $data
425-
foreach ($fields as $field) {
425+
foreach ($fields as $field)
426+
{
426427
if (
427-
(strpos($field, '.') !== false &&
428-
empty(dot_array_search($field, $data))) ||
429-
(strpos($field, '.') === false &&
430-
(!array_key_exists($field, $data) || empty($data[$field])))
431-
) {
428+
(strpos($field, '.') !== false && empty(dot_array_search($field, $data))) ||
429+
(strpos($field, '.') === false && (! array_key_exists($field, $data) || empty($data[$field])))
430+
)
431+
{
432432
return false;
433433
}
434434
}

0 commit comments

Comments
 (0)