4
Actually, the XOOPS Core is anything but standard. The whole framework is a miss-match patch work frame. There are many issues that need to be discussed regarding coding standards, and from what I can see, they are not.
For example:
$var =(isset($_GET['var']))?$var2:$var3;
Is not acceptable, why? Due to readability reasons. but the code is scattered with examples of this.
$var = ( isset( $_GET['var'] ) ) ? $var2 : $var3;
To me this is much more readable and easier to understand.
Also, I believe that the use of double quotes should only be used for html and single quotes for PHP code. If you don't know why, then I suggest you read a manual.
There are loads of examples I could quote that are really not acceptable and are still being used in the code. I guess one of these is this
foreach ($_POST as $key => $var) {
$$key = $var;
}
This is so not correct when populating variables, especially when dealing with post or get vars. but, they are still in there.