diff --git a/phpgwapi/doc/coding_standard.txt b/phpgwapi/doc/coding_standard.txt index 30fd8e56ca..c2374216b7 100644 --- a/phpgwapi/doc/coding_standard.txt +++ b/phpgwapi/doc/coding_standard.txt @@ -57,9 +57,7 @@ { function print_to_screen() { - global phpgw, phpgw_info; - - if ($var == 'example') + if($var == 'example') { echo 'This is only an example'; } @@ -72,13 +70,22 @@ 11) Associative arrays must be written in the following manner: - $array = array - ( - 'var' => 'value', - 'var2' => 'value2' + $array = array( + 'var' => 'value', + 'var2' => 'value2' ); - Note that tabs are preferred around the '=>'. + OR: + + $array = array + ( + 'var' => 'value', + 'var2' => 'value2' + ); + + Note that spaces are preferred around the '=>'. This is because only tabs + on the left side are guaranteed to line up correctly using different + tabstops. 12) Use the long format for