Why using “Reformat Code” functionality some methods are differently formatted?

In PhpStorm 2021.1 working with Laravel 9 I periodically use “Reformat Code” functionality with all content of the file selected.

But some methods of this file looks differently formatted :

    public function setBannerId(int $value): self
        $this->bannerId = $value;

        return $this;

    function setDescriptionSize(
        int $value
    ): self {
        $this->descriptionSize = $value;

        return $this;

I dislike a way the second method is formatted. I want all methods to be formatted as the first method?

“Reformat Code” tab https://prnt.sc/cxkkYQdcRPjd printscreen

Can it be done?

1 comment
Comment actions Permalink

Please share your .editorconfig file together with the Code Style scheme exported as XML (you can export it in the menu behind the gear icon visible on your screenshot).
You can upload both files here: https://uploads.services.jetbrains.com/


Please sign in to leave a comment.