Vote Details for "System_Serial" by justinpatrin

» Details
» Comment
Strings should use ', not " if they have no replacements within them (backslash expressions like \n or variables). It requires slightly less parsing and makes it clear that the string is literal.

Comments should be tabbed according to CS. If there is nothing in CS specifically about this, the / should be level with the code it's commenting, the * should be one more space in as should the */. Like this:

/**
*
*/
function foo() {
}

NULL should be null (I believe)

Function definitions should use the one true brace style:

function ($arg)
{
//code
}