Separate class constant to own lines
class SomeClass
{
- const HI = true, HELLO = 'true';
+ const HI = true;
+ const HELLO = 'true';
}
Configure your rector.php
:
<?php
use Rector\CodingStyle\Rector\ClassConst\SplitGroupedClassConstantsRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
SplitGroupedClassConstantsRector::class,
]);