Bug #5354 [Bgs]: Coding Standards

From: Date: Fri, 09 Sep 2005 22:40:59 +0000
Subject: Bug #5354 [Bgs]: Coding Standards
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6793@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=5354&edit=1 ID: 5354 Updated by: papercrane@reversefold.com Reported By: mypiehole at tetradesigns dot com Status: Bogus Id: 5354 Type: Bug Package: Documentation PHP Version: 4.4.0 New Comment: IMHO the CS is perfectly clear, especially since CS dictates that all blocks *must* have { and }. As long as that rule is followed following the blocks is simple due to indenting. (IMHO function delcarations should follow the same rule...but whatever) Previous Comments: ------------------------------------------------------------------------ [2005-09-09 18:32:26] klaus at capitalfocus dot org Sorry, the PEAR CS is the way it is. Everyone has their preferences. If you want to use another coding style, feel free to do so. ------------------------------------------------------------------------ [2005-09-09 18:28:08] mypiehole at tetradesigns dot com 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 this bug report at http://pear.php.net/bugs/bug.php?id=5354&edit=1

« previous php.pear.doc (#6793) next »