Bug #5354 [NEW]: Coding Standards
| From: | mypiehole at tetradesigns dot com | Date: | Fri, 09 Sep 2005 22:28:08 +0000 |
| Subject: | Bug #5354 [NEW]: Coding Standards | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6790@lists.php.net to get a copy of this message | ||
From: mypiehole at tetradesigns dot com
Operating system:
PHP version: 4.4.0
Package: Documentation
Bug Type: Bug
Bug description: Coding Standards
Description:
------------
arranging code structures with trailing and beginning braces is not as
clear as wrapping code sections in braces
i.e
current - not as clear
if(condition){
action;
} elseif(condition {
action2;
}else{
action3;
}
proposed
if(condition) //EASIER COMMENTED
{
action;
}
elseif(condition
{
action2;
}
else
{
action3;
}
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=5354&edit=1
--