PHP codestyle of closures and functions

Does strorm make difference between functions (class methods) and closures (inline functions) in terms of codestyle?
When I declare class methods, our code style insists on putting a brace on new line:
class Bar
{
  public function getFoo()
   {
    return $this->foo;
  }
}
However, with closures I want to keen an opening brace on the same line:
class Bar
{
  public function getFoo()
   {
    return array_filter($this->foo, function($i) {
       return true;
    });
   }
}

Mind the coloured braces.
Right now, we I do reformat code, braces are aligned as configured in Codestyle > PHP > Wrapping and Braces > Braces Placement > In function declaration.
It appeart storm makes no difference between the two types of functions.

1 comment
Comment actions Permalink

If anyone is intrested, I've added a feature request: http://youtrack.jetbrains.com/issue/WI-12140

0

Please sign in to leave a comment.