From: Evan Winslow Date: Mon, 7 Nov 2011 00:40:23 +0000 (+0000) Subject: Fixes #3397: Adds 'positive' variable name standard to best practices file. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bdbf47c030c6ed8903f6511c5436cd29a234f29f;p=lorea%2Felgg.git Fixes #3397: Adds 'positive' variable name standard to best practices file. --- diff --git a/documentation/coding_standards/best_practices.txt b/documentation/coding_standards/best_practices.txt index 069ac42aa..df04aa845 100644 --- a/documentation/coding_standards/best_practices.txt +++ b/documentation/coding_standards/best_practices.txt @@ -15,6 +15,8 @@ work for developers, which means happier, more productive developers. * Use self-documenting variable names. $group_guids is better than $array. +* Use "positive" variable names. Prefer `$enable = true` to `$disable = false`. + * Functions returning an array should return an empty array instead of FALSE on no results.