aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Winslow <evan.b.winslow@gmail.com>2011-11-07 00:40:23 +0000
committerEvan Winslow <evan.b.winslow@gmail.com>2011-11-07 00:40:23 +0000
commitbdbf47c030c6ed8903f6511c5436cd29a234f29f (patch)
tree49a93e98c4dc90baff7779f9d3a83acb330a29f6
parent8699afa034a94cc93a18b20a21aec70e036443fc (diff)
downloadelgg-bdbf47c030c6ed8903f6511c5436cd29a234f29f.tar.gz
elgg-bdbf47c030c6ed8903f6511c5436cd29a234f29f.tar.bz2
Fixes #3397: Adds 'positive' variable name standard to best practices file.
-rw-r--r--documentation/coding_standards/best_practices.txt2
1 files changed, 2 insertions, 0 deletions
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.