Skip to content

Commit

Permalink
Static analysis fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Nov 22, 2024
1 parent 077ee3d commit 818759c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/OpenSRS/Helper/OpenSrsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@ private static function isAssoc(array &$array): bool
return true;
}

if (is_array($array)) {
foreach ($array as $k => $v) {
if (!is_int($k)) {
return true;
}
foreach ($array as $k => $v) {
if (!is_int($k)) {
return true;
}
}

Expand Down

0 comments on commit 818759c

Please sign in to comment.