mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-26 05:14:05 +00:00
Update CONTRIBUTING.md
This commit is contained in:
parent
926afa3903
commit
9e8cf2d42c
@ -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.
|
* Long arrays MAY be split across multiple lines, where each subsequent line is indented once.
|
||||||
* Files MUST use only the `<?php` tag.
|
* Files MUST use only the `<?php` tag.
|
||||||
* Files MUST NOT have an ending `?>` 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.
|
* Strings SHOULD use the double quote `"` except when the single quote is required.
|
||||||
* Arrays SHOULD be declared using `array()`, not the `[]` shortcut.
|
* Arrays SHOULD be declared using `array()`, not the `[]` shortcut.
|
||||||
* Argument lists MAY NOT be split across multiple lines, except long arrays.
|
* 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
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PocketMine\Example;
|
||||||
|
|
||||||
class ExampleClass{
|
class ExampleClass{
|
||||||
const EXAMPLE_CLASS_CONSTANT = 1;
|
const EXAMPLE_CLASS_CONSTANT = 1;
|
||||||
public $examplePublicVariable = "defaultValue";
|
public $examplePublicVariable = "defaultValue";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user