Skip to content
Snippets Groups Projects
Commit 6f7aa4f0 authored by Thom's avatar Thom :tools:
Browse files

Merge branch '6049-update-the-contributing-doc' into '6049-update-the-contributing-doc'

Minor md tweaks

See merge request ispconfig/ispconfig3!1423
parents 8bc2bc35 faa306e6
No related branches found
No related tags found
2 merge requests!1423Minor md tweaks,!1408Resolve "Update the contributing doc"
Pipeline #7911 passed
......@@ -32,7 +32,7 @@ Closes #6049"
# Some guidelines for web development with php.
-----------------------------------------------------
* Don't use features that are not supported in PHP 5.4, for compatibility with LTS OS releases, ISPConfig must support PHP 5.4+
* Don't use shorttags. A Shorttag is <? and that is confusing with <?xml -> always use <?php
* Don't use shorttags. A Shorttag is `<?` and that is confusing with `<?xml` -> always use `<?php`
* Don't use namespaces
* Column names in database tables and database table names are in lowercase
* Classes for the interface are located in interface/lib/classes/ and loaded with $app->uses() or $app->load() functions.
......@@ -40,7 +40,7 @@ Closes #6049"
### Indentations
Indentations are always done with tabs. Do **not** use spaces.
Indentations are always done with tabs. Do **not** use spaces.
It is recommended to set your IDE to display tabs with a width of 4 spaces.
### Variable and method / function names
......@@ -73,7 +73,7 @@ class my_class {
#### Curly braces
Opening curly braces always have to be in the same line as the preceding condition. They are separated by a single space from the closing paranthesis.
Opening curly braces always have to be in the same line as the preceding condition. They are separated by a single space from the closing paranthesis.
Closing curly braces are always on a separate line after the last statement in the block. The only exception is a do-while block where the logic is inverted.
Curly braces are **always** to be used. Do not leave them out, even if there is only a single statement in the corresponding block.
......@@ -206,7 +206,7 @@ $var2 = [
```
**Wrong:**
```php:
```php
$var = array();
$var2 = array(
......@@ -218,7 +218,7 @@ $var2 = array(
#### Spaces and newlines
When defining an empty array, both brackets shall be on the same line. When defining an array with values, the style depends on the values you are going to assign.
When defining an empty array, both brackets shall be on the same line. When defining an array with values, the style depends on the values you are going to assign.
##### List of values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment