Coding standards (layout)
| From: | Zeev Suraski | Date: | Mon, 30 Jul 2001 03:09:44 +0000 |
| Subject: | Coding standards (layout) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61414@lists.php.net to get a copy of this message | ||
Guys,
Please follow the coding standards as they appear in the CODING_STANDARDS with code you commit to the PHP repository.
Stuff I noticed while going over large portions of code in the last few days:
- open-curly-braces should not appear on the same line as a function declaration, but on the following line
- commas (e.g. in function calls or declarations, or macro calls) should be followed by a space. I.e., foo(a, b, c), never foo(a,b,c).
Going over code which has many different layouts is a real pain. The code in the php4 repository at least should be consistent.
Thanks,
Zeev