Update contributing document

This commit is contained in:
James Brooks
2014-11-22 14:04:51 +00:00
parent 8f3e4a7eb2
commit faf710eeeb

View File

@@ -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.