From c967ad9dd5b2a77e35a519b9d715ea3da5f0deec Mon Sep 17 00:00:00 2001 From: James Brooks Date: Thu, 27 Nov 2014 22:01:47 +0000 Subject: [PATCH] Update code standards --- CONTRIBUTING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e0587f80..850a857b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Creating issues -It's dead simple, use the issue tracker. Be descriptive, remember this is a community and we're all helping each other, so be respectful. +It's dead simple, use the issue tracker. Be descriptive, remember this is a community and we're all helping each other, so be respectful towards each other. ## Coding Standards @@ -21,6 +21,7 @@ class Foo extends Bar { } } } + ``` - Atleast one newline seperating `namespace`, `use`, and `class` declarations @@ -34,3 +35,7 @@ class Foo extends Bar { - Line lengths have a soft 80 limit and hard 120 length. - PHP constants should be in lowercase; `true`, `false` and `null`. - Defined constants should always be in uppercase. +- Never leave trailing spaces at the end of a line. +- Files should end with one blank line. + +If you're still unsure, then take a look at existing code.