0

Is there a rule to remove extra new lines inside import?

So change:

use Foo\Bar\A;
use Foo\Bar\B;

use Foo\Bar\C;
use Foo\Bar\D;

To this:

use Foo\Bar\A;
use Foo\Bar\B;
use Foo\Bar\C;
use Foo\Bar\D;
David Maksimov
  • 369
  • 5
  • 17

1 Answers1

1

You can use the no_extra_blank_lines configuration.

I added the following to my configuration to remove the extra lines between use statements.

'no_extra_blank_lines' => ['tokens' => ['use']]
David Maksimov
  • 369
  • 5
  • 17