2
I think we better stick to that standard xoops syntax.
The recent cleanups and polishings of the core code make it already unnecessary difficult to compare versions.
The fact that once it was formatted in one way and then again reversed, make it even more enoying.
If there is proper indention, the control structure stays readable.
if ($a==1){
switch ($i) {
case 0:
echo "i equals 0";
break;
case 1:
echo "i equals 1";
break;
}
}
Personaly, I find the aligned bracket system better:
if ($a==1)
{
switch ($i)
{
case 0:
echo "i equals 0";
break;
case 1:
echo "i equals 1";
break;
}
}
else
{
echo "a is not 1";
}