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
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
7
+
* error_reporting(E_ALL|E_STRICT), yep php5
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 shorttags. A Shorttag is <? and that is confusing with <?xml -> always usw <?php
11
11
* Column names in database tables and database table names are in lowercase
12
12
* Classes for the interface are located in interface/lib/classes/ and loaded with $app->uses() or $app->load() functions.
13
13
* 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).
14
+
* please mark any section that need review or work on with /* TODO: short description */
18
15
* Make function / var names on the following way, first word lower, next word(s) first letter upper like. getFirstResult();
19
-
20
-
Pear coding guidelines
16
+
* always a space but NO newline before opening braces, e. g.
17
+
class abc {
18
+
public function cde() {
19
+
if($a == $b) {
20
+
return false;
21
+
}
22
+
}
23
+
}
24
+
* no spaces after function/method or control names, e. g.
0 commit comments