Update CONTRIBUTING.md

This commit is contained in:
Shoghi Cervantes 2014-03-27 22:32:00 +01:00
parent 926afa3903
commit 9e8cf2d42c

View File

@ -38,7 +38,7 @@ It is mainly [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accept
* Long arrays MAY be split across multiple lines, where each subsequent line is indented once.
* Files MUST use only the `<?php` tag.
* Files MUST NOT have an ending `?>` tag.
* Code MUST NOT use namespaces. Descriptive and unique class names are enforced.
* Code MUST use namespaces.
* Strings SHOULD use the double quote `"` except when the single quote is required.
* Arrays SHOULD be declared using `array()`, not the `[]` shortcut.
* Argument lists MAY NOT be split across multiple lines, except long arrays.
@ -46,6 +46,8 @@ It is mainly [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accept
```php
<?php
namespace PocketMine\Example;
class ExampleClass{
const EXAMPLE_CLASS_CONSTANT = 1;
public $examplePublicVariable = "defaultValue";