Add new line after statements to tidify code
class SomeClass
{
public function first()
{
}
+
public function second()
{
}
}
Configure your rector.php
:
<?php
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
NewlineAfterStatementRector::class,
]);