summaryrefslogtreecommitdiff
path: root/CODING_STANDARDS
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-09-09 07:54:11 +0000
committerDerick Rethans <derick@php.net>2002-09-09 07:54:11 +0000
commit612d5b99bca2e04d5d09896b17d9c0ddec3aef09 (patch)
treea0a76f3e6cdeba1004d9ceeecdc0d115f7e9b1f5 /CODING_STANDARDS
parent8e7147a1cb4fc45480bb278478e7ab2019abffbb (diff)
downloadphp-git-612d5b99bca2e04d5d09896b17d9c0ddec3aef09.tar.gz
- spaces instead of tabs
Diffstat (limited to 'CODING_STANDARDS')
-rw-r--r--CODING_STANDARDS16
1 files changed, 8 insertions, 8 deletions
diff --git a/CODING_STANDARDS b/CODING_STANDARDS
index ece915e1fc..826d7e46c8 100644
--- a/CODING_STANDARDS
+++ b/CODING_STANDARDS
@@ -97,9 +97,9 @@ Exceptions:
try avoiding it.
[7] Use PHP_* macros in the PHP source, and ZEND_* macros in the Zend
- part of the source. Although the PHP_* macro's are mostly aliased to the
- ZEND_* macros it gives a better understanding on what kind of macro you're
- calling.
+ part of the source. Although the PHP_* macro's are mostly aliased to the
+ ZEND_* macros it gives a better understanding on what kind of macro you're
+ calling.
[8] Use assert(). assert.h is included in php.h if it is available. Not only
does good assertion catch bugs, but it also helps with code readability.
@@ -200,13 +200,13 @@ Syntax and indentation
[3] Be generous with whitespace and braces. Always prefer:
- if (foo) {
- bar;
- }
+ if (foo) {
+ bar;
+ }
- to:
+ to:
- if(foo)bar;
+ if(foo)bar;
Keep one empty line between the variable declaration section and
the statements in a block, as well as between logical statement