phpowermove / php-code-generator

PHP code generator library
https://php-code-generator.readthedocs.org
Apache License 2.0
147 stars 43 forks source link

Put function's start accolade on new line #49

Closed JuJuDropThor closed 6 years ago

JuJuDropThor commented 7 years ago

Hi guys,

thanks for that lib, pretty usefull.

Is it possible to generate function like that ?

public function setEmail($email)
{
    $this->email = $email;
    return $this;
}

instead of that

public function setEmail($email) {
    $this->email = $email;
    return $this;
}

I 'd like the first accolade be on new line.

Is that possible ? I didn't find any parameter. Maybe overriding something ?

I got the same issue on the accolade of my class.

class User {

instead of

Class User {

gossi commented 7 years ago

The strategy towards this is roughly outlined in #23

gossi commented 6 years ago

Implemented, see #54