How to remove an empty line before return in condition line with only few lines?

27 Views Asked by At

When in PhpStorm 2023 I make auto reformat of code, I got an empty line before return in condition line:

if (empty($categoryName)) {
    $this->error('Category Name is not provided');

    return;
}

If there is an option to set an empty line only when there are, say, 5 lines of code in this block of code? I do not need an empty line in such small block of code.

0

There are 0 best solutions below