Don't want the space between anonymous functions


Am coding in PHPStorm and I use Laravel convention, but when I reformat my code, there is a space between the function keyword and the parenthesis and I don't like that. I go to the code style settings and I can't find option to remove that. Is there any way to do so?

An axample to illustrate:
    $this->app->bindShared('view', function ($app)
        // the code here

and I want:

     $this->app->bindShared('view', function($app)
          // the code here

Thank you in advance :)

Comment actions Permalink


File | Settings | Code style | PHP | Spaces | Function declaration parentness.
(For not anonymous functions)

For anonymous there is no such possibility, please describe the feature request: more detailed in our tracking system YouTrack.

See if you are not familiar with YouTrack.


Please sign in to leave a comment.