From faf710eeeb3fb2ccd899d90b54e86e3272e01534 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 22 Nov 2014 14:04:51 +0000 Subject: [PATCH] Update contributing document --- CONTRIBUTING.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 096f51a7..4199be96 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,4 +6,15 @@ It's dead simple, use the issue tracker. Be descriptive, remember this is a comm ## Coding Standards -Please use [PSR-2](http://www.php-fig.org/psr/psr-2/) coding style. +Please follow existing coding standards: + +- Spaces around operators and control blocks: + ```php + if ($condition) { + + } + ``` +- Braces on the same line. The exception to this rule is for long conditions. +- 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.