Coding styles for chained methods

I'm trying to properly configuring PHPStorm's coding styles, but I can't seem to accomplish what I want. Am I simply missing something, or does the coding styles still need more tweaking?

I want to it to style method chains like this:

$q = Doctrine_Query::create()
     ->select($args[1])
     ->from("{$model} t")
     ->where("t.{$column} = {$args[0]}");

$fc->someFunction();

However, when I set chained method calls to wrap always I get this:

            $q = Doctrine_Query::create()
                    ->select($args[1])
                    ->from("{$model} t")
                    ->where("t.{$column} = {$args[0]}");

        $fc
                ->info($column);

Is there a way to configure it so that the single method called upon the $fc object isn't split?

3 comments

It appears there is no way to achieve the desired formatting style at the moment.

I recommend to submit bug report (this obviously is a bug) here: http://youtrack.jetbrains.net/dashboard/WI#newissue=yes

0

Please sign in to leave a comment.