Bug #5354 [Opn->Bgs]: Coding Standards

From: Date: Fri, 09 Sep 2005 22:32:26 +0000
Subject: Bug #5354 [Opn->Bgs]: Coding Standards
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6791@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: klaus@capitalfocus.org Reported By: mypiehole at tetradesigns dot com -Status: Open +Status: Bogus Id: 5354 Type: Bug Package: Documentation PHP Version: 4.4.0 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#6791) next »