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
* Unix Line Breaks Only, NO windows breaks please.
4
-
* Tabs set at 4 spaces either as tabs or spaces.
4
+
* Tabs to indent lines, NO spaces
5
5
* no accidental _<?php space before, within or after a file
6
-
* every php file starts and end with <?php ?> no spaces before or after
7
-
* error_reporting(E_ALL|E_STRICT) , yep php5
8
-
* Magic quotes is gone in php6, get used to it now. config = magic_quotes_gpc() Everything must be quoted
9
-
* Don't use ereg,split and other old function -> gone in php 5.4 or 6 (different information on php.net) http://www.php.net/manual/en/migration53.deprecated.php
10
-
* Don't use shorttags. A Shorttag is <? and that is confusing with <?xml -> always <?php
6
+
* every PHP file starts and end with <?php ?> no spaces before or after
7
+
* error_reporting(E_ALL|E_STRICT), yep PHP 5
8
+
* Magic quotes is gone, get used to it now. config = magic_quotes_gpc() Everything must be quoted
9
+
* Don't use ereg, split and other old function -> gone in PHP 5.4
10
+
* Don't use features that are not supported in PHP 5.3, for compatibility with LTS OS releases, ISPConfig must support PHP 5.3+
11
+
* Don't use shorttags. A Shorttag is <? and that is confusing with <?xml -> always usw <?php
12
+
* Don't use namespaces
11
13
* Column names in database tables and database table names are in lowercase
12
14
* Classes for the interface are located in interface/lib/classes/ and loaded with $app->uses() or $app->load() functions.
13
15
* Classes for the server are located in server/lib/classes/ and loaded with $app->uses() or $app->load() functions.
14
-
15
-
please mark any section that need review or work on with
16
-
// TODO
17
-
* Add documentation about access levels (public, private, protected).
16
+
* please mark any section that need review or work on with /* TODO: short description */
18
17
* Make function / var names on the following way, first word lower, next word(s) first letter upper like. getFirstResult();
19
-
20
-
Pear coding guidelines
18
+
* always a space but NO newline before opening braces, e. g.
19
+
class abc {
20
+
public function cde() {
21
+
if($a == $b) {
22
+
return false;
23
+
}
24
+
}
25
+
}
26
+
* no spaces after function/method or control names, e. g.
0 commit comments