phpstorm - Why is my function declaration wrapping to 2 lines? -
I am using PHPStorm 7. When I write the following code,
public function) {} and then reformat it, it outputs to the following format: < / P>
public function () {} Why does the word 'function' wrap in the second line? I tried to change and close every setting in the PHP code style settings dialog without any success, where can I turn off?
There is a setting called 'Wrap after modifier list' on a new line 'function 'The keyword might have examined it.
As the name suggests, this modifier 'hides' after the list. Modifiers are such keywords as public / protected / private , summary , last stable etc. Last public static function bar ()
Last public static function bar () Note that the classes are also affected by this:
abstract class Fu
The setting should be under the 'Wrapping and Suspend' tab (Settings & gt; Code Style & gt; PHP), under the list below. Unchecking it should solve your problems.
Comments
Post a Comment