Files
cachet-docker/CONTRIBUTING.md
2014-11-27 22:01:47 +00:00

42 lines
1012 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Contribution Guidelines
## 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 towards each other.
## Coding Standards
Please follow existing coding standards:
```php
<?php
namespace Foo\Bar\Controller;
use Foo\Bar\Bar;
class Foo extends Bar {
public function baz() {
if ($condition) {
}
}
}
```
- Atleast one newline seperating `namespace`, `use`, and `class` declarations
- 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.
- 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.