Thread
:
Clean Coding - Common Sense
View Single Post
#
82
04-10-2007, 05:43 PM
Skyld
Script-fu
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
PHP Code:
if (var)
{
// ...
}
I don't see the point in putting
var == true
when that's already implied, and I prefer brackets on their own line. It improves spacing and clarity.
__________________
Skyld
View Public Profile
View GraalOnline Profile
Find all posts by Skyld