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;
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;
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']]