Add new line space between class constants, properties and class methods to make it more readable
final class SomeClass
{
public const NAME = 'name';
+
public function first()
{
}
+
public function second()
{
}
}
Configure your rector.php:
<?php
use Rector\CodingStyle\Rector\ClassLike\NewlineBetweenClassLikeStmtsRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
NewlineBetweenClassLikeStmtsRector::class,
]);