From 9a5ce0aee57c8b84648cd22fc1a6e3329942d0f4 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Fri, 8 Nov 2024 20:40:42 +0000 Subject: [PATCH] chore: fix styling --- src/Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Form.php b/src/Form.php index d9e7043..f6853d7 100644 --- a/src/Form.php +++ b/src/Form.php @@ -276,6 +276,7 @@ public function validate(array $dataSource, array $validationSet) foreach ($validationSet as $itemToValidate => $userRules) { if (empty($userRules)) { $output[$itemToValidate] = Anchor::deepGetDot($dataSource, $itemToValidate); + continue; } @@ -286,7 +287,7 @@ public function validate(array $dataSource, array $validationSet) if (!$this->test($userRules, $value, $itemToValidate)) { $output = false; - } else if ($output !== false && !$endsWithWildcard) { + } elseif ($output !== false && !$endsWithWildcard) { if ( (is_array($userRules) && in_array('optional', $userRules)) || (is_string($userRules) && strpos($userRules, 'optional') !== false)