You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Don't use features that are not supported in PHP 5.4, for compatibility with LTS OS releases, ISPConfig must support PHP 5.4+
35
-
* Don't use shorttags. A Shorttag is <? and that is confusing with <?xml -> always use <?php
35
+
* Don't use shorttags. A Shorttag is `<?` and that is confusing with `<?xml` -> always use `<?php`
36
36
* Don't use namespaces
37
37
* Column names in database tables and database table names are in lowercase
38
38
* Classes for the interface are located in interface/lib/classes/ and loaded with $app->uses() or $app->load() functions.
39
39
* Classes for the server are located in server/lib/classes/ and loaded with $app->uses() or $app->load() functions.
40
40
41
41
### Indentations
42
42
43
-
Indentations are always done with tabs. Do **not** use spaces.
43
+
Indentations are always done with tabs. Do **not** use spaces.
44
44
It is recommended to set your IDE to display tabs with a width of 4 spaces.
45
45
46
46
### Variable and method / function names
@@ -73,7 +73,7 @@ class my_class {
73
73
74
74
#### Curly braces
75
75
76
-
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.
76
+
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.
77
77
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.
78
78
79
79
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 = [
206
206
```
207
207
208
208
**Wrong:**
209
-
```php:
209
+
```php
210
210
$var = array();
211
211
212
212
$var2 = array(
@@ -218,7 +218,7 @@ $var2 = array(
218
218
219
219
#### Spaces and newlines
220
220
221
-
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.
221
+
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.
0 commit comments