add_ClassAttributeSeparationFixer #3

Merged
lubiana merged 3 commits from add_ClassAttributeSeparationFixer into main 2024-05-04 18:26:43 +00:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit 00f72e3be9 - Show all commits

View file

@ -1,5 +1,6 @@
<?php declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;
use PhpCsFixer\Fixer\LanguageConstruct\FunctionToConstantFixer;
use PhpCsFixer\Fixer\Operator\NewWithBracesFixer;
@ -77,9 +78,15 @@ return ECSConfig::configure()
]
)
->withConfiguredRule(
\PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer::class,
ClassAttributesSeparationFixer::class,
[
'elements' => ['const' => 'none', 'method' => 'one', 'property' => 'none', 'trait_import' => 'none', 'case' => 'none'],
'elements' => [
'const' => 'none',
'method' => 'one',
'property' => 'none',
'trait_import' => 'none',
'case' => 'none',
],
],
)->withConfiguredRule(
DeclareStrictTypesSniff::class,

View file

@ -5,6 +5,5 @@ namespace Lubiana\CodeQuality;
final class LubiSetList
{
public const string RECTOR = __DIR__ . '/../config/rector.php';
public const string ECS = __DIR__ . '/../config/ecs.php';
}