Run Rector on your code to see what it can do for you:
<?php $a = 1; $b = [1]; $c = []; -if (in_array($a, $b)) { - -} elseif (in_array($a, $c)) { - echo "elseif"; +if (!in_array($a, $b) && in_array($a, $c)) { + echo "elseif"; } else { echo "else"; }
Applied Rules:
Not a change you expect?
rector.php