0

I am using zend studio IDE to write code.

I use code formatter to format my code. Most of code is formatted by code formatter but not all.

What I want,

$is_admin = $this->logged_user->isAdmin(); 

should format in same way like

$is_admin = $this->logged_user->isAdmin(); 

not like

$is_admin = $this->logged_user
                 ->isAdmin();

Any idea?

Malay Ladu
  • 36
  • 5

1 Answers1

0

Zend Studio 11.0

Window -> Preferences -> PHP -> Code Style -> Formatter -> (button) Edit -> (tab) New Lines:

Insert new line after method invocation, when chaining at least: 0

Wilwor ;)

Wilwor
  • 1