In new code `{`s should be on the same line as if/for/while/etcs.  The exception if functions, where they should be on a seperate line.  See [the code style guidelines](dev.minetest.net/Code_style_guidelines).