Skip to content

Commit 5f9ffd9

Browse files
committed
no conditions
1 parent 2f03689 commit 5f9ffd9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/helpers.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -372,17 +372,13 @@ function old_empty_or_null($key, $empty_value = '')
372372
function is_multidimensional_array(array $array, bool $strict = false): bool
373373
{
374374
foreach ($array as $item) {
375-
if ($strict) {
376-
if (! is_array($item)) {
377-
return false;
378-
}
379-
} else {
380-
if (is_array($item)) {
381-
return true;
382-
}
375+
if ($strict && ! is_array($item)) {
376+
return false;
377+
}
378+
if (! $strict && is_array($item)) {
379+
return true;
383380
}
384381
}
385-
386382
return $strict;
387383
}
388384
}

0 commit comments

Comments
 (0)