Ashar Voultoiz" wrote:
Hello,
I am willing to know which formatting method we should use in code for
function declarations. Actually I see two shemes:
1)
function foobarone() {
code here
}
2)
function foobartwo()
{
code here
}
My personal style is the second, but I think a number of other MediaWiki
coders lean towards the first. The second is the K&R standard, see
http://pantransit.reptiles.org/prog/CodingStyle.html . In more recent code
I've been mainly using the first one, since I realised it was predominant
before I came along. So I'd be happy enough converting everything to the
first.
-- Tim Starling