]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3397: Adds 'positive' variable name standard to best practices file.
authorEvan Winslow <evan.b.winslow@gmail.com>
Mon, 7 Nov 2011 00:40:23 +0000 (00:40 +0000)
committerEvan Winslow <evan.b.winslow@gmail.com>
Mon, 7 Nov 2011 00:40:23 +0000 (00:40 +0000)
documentation/coding_standards/best_practices.txt

index 069ac42aa807fbe338131a38e5f22a5b284cfeb1..df04aa8455822398c11090991e3918c605267d13 100644 (file)
@@ -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.