Login | Register
My pages Projects Community openCollabNet

propel
Reply to message

* = Required fields
* Subject
* Body
Attachments
Send reply to
Topic
Author (directly in email)
Please type the letters in the image above.

Original message

Author Carl Parrish <cparrish@pcl-consulting.com>
Full name Carl Parrish <cparrish@pcl-consulting.com>
Date 2006-12-06 07:54:51 PST
Message Hans Lellelid wrote:
>
>
> Yeah, I tend to agree. My personal preference is a hybrid approach
> where functions are like
>
> public function myfunc()
> {
>
> }
>
> but if-statements are on same line:
>
> if ($foo === true) {
>
> } elseif () {
>
> } else {
>
> }
>
> But for the same of consistency, I'm willing to give up my functions
> with { opening on their own line :)
>
> For simplicity, we may just wish to adopt the PEAR coding standards,
> since they are ubiquitous in the PHP world.
>
> Hans
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>
>
I realize I'm *months* late on this thread but just wanted to add a me
too. This is my preferred style.