Skip to content

Commit d83a8ba

Browse files
committed
style: break long line
1 parent cd0fb1a commit d83a8ba

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

system/Validation/Rules.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,13 @@ public function required_without($str = null, ?string $otherFields = null, array
316316
// Still here? Then we fail this test if
317317
// any of the fields are not present in $data
318318
foreach (explode(',', $otherFields) as $otherField) {
319-
if ((strpos($otherField, '.') === false) && (! array_key_exists($otherField, $data) || empty($data[$otherField]))) {
319+
if (
320+
(strpos($otherField, '.') === false)
321+
&& (! array_key_exists($otherField, $data) || empty($data[$otherField]))
322+
) {
320323
return false;
321324
}
325+
322326
if (strpos($otherField, '.') !== false) {
323327
if ($field === null) {
324328
throw new InvalidArgumentException('You must supply the parameters: field.');

0 commit comments

Comments
 (0)