Templating getters and setters to be on one line

I would like to have each getter and setter on one line, for instance:
public function getName(){return $this->name}

I have tried to.change the getter template but it seems to not remove the " breaks lines".  How can I do it? Is any configuration above getter templating that is avoiding to get what I want?

Moreover, I would like not to have any blank lines between generated getters and setters. For instance:
public getId ..........
public setId .....
public getname .....
public setname .......

Regards

1 comment

To achive one liners you need to enable checkbox in "Settings->Code Style->PHP->Wrapping and Braces->Simple methods in one line" and then remove all new lines from template. Unfortunately blank lines can be removed only for all methods. Feel free to file Feature Request in http://youtrack.jetbrains.com 

0

Please sign in to leave a comment.