Re: [PEPr] Comment on RFC::Coding standard enhancements
| From: | Ken Guest | Date: | Tue, 04 Nov 2008 01:05:30 +0000 |
| Subject: | Re: [PEPr] Comment on RFC::Coding standard enhancements | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-51009@lists.php.net to get a copy of this message | ||
On Mon, Nov 3, 2008 at 7:28 PM, Helgi Þormar Þorbjörnsson <helgith@gmail.com
> wrote:
> On Mon, Aug 25, 2008 at 1:47 PM, Christian Weiske <cweiske@cweiske.de>
> wrote:
> > Hello Stefan,
> >
> >
> >> The split function definition part is contradicting the current
> standard,
> >> where the opening brace of the function definition is on its own line.
> > Yes, and that's intentional. You will be free to do both variants.
> >
> > function a()
> > {
> > //blubb
> > }
> >
> > function b(
> > $with, $too, $much,
> > $parameters
> > ) {
> > //blubb
> > }
>
>
> Really ? I think it should be:
>
>
> function b($with, $too, $much,
> $parameters)
> {
> //blubb
> }
>
> Stays more in line with the current standard.
>
and I have tended towards the following, with all parameters vertically
aligned, as I find it more readable than the two given options:
function b($with,
$too,
$much,
$parameters) {
//blubb
}
k.