Re: Coding Standards and Curly Braces

From: Date: Tue, 10 Jun 2003 19:40:27 +0000
Subject: Re: Coding Standards and Curly Braces
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5894@lists.php.net to get a copy of this message
Bertrand Mansion wrote:
<dannie@spinweb.net> wrote :
We are considering adopting PEAR coding standards... so one question: Can we put a carriag return after parenthesized control structures and still be within the coding standards? I have seen functions declared with the carriage return but have only seen if/for statements without the curly brace. So in other words is this valid also: for($i=0; $i<$something; $i++) {
      echo "yo";
}
No, sorry. Bertrand Mansion Mamasam
So it is OK for functions, true? Do you have documentation for your curly brace response, i.e. I looked here: http://pear.php.net/manual/en/standards.control.php and couldn't find specific doc... a link to the RFC would be helpful. Thanks, Dannie

« previous php.pear.general (#5894) next »