Difference between revisions of "Coding Standards"

From ARK
Jump to: navigation, search
Line 3: Line 3:
 
Common errors and things to watch out for:
 
Common errors and things to watch out for:
  
* Use a space after operators but not after function calls
+
* Use a spaces after control structures but not after function calls
 
   function(call);
 
   function(call);
   if (operator) {
+
   if (control_structure) {

Revision as of 15:58, 4 June 2007

The ARK coding standards follow the PEAR coding standards for PHP code. The PEAR documentation is pretty complete and should be consulted in the first instance at the [PEAR] website.

Common errors and things to watch out for:

  • Use a spaces after control structures but not after function calls
 function(call);
 if (control_structure) {