You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first isn't what I'd call good formatting, but it IS valid php. phpcbf autocorrects it to the latter, which is not. Feels like something should be in place to have it not actually create invalid php?
Before:
<?php $stuff = [1,2,3]; foreach($stuff as $num) if ($num %2 ) { echo "even"; } else { echo "odd"; }