add_ClassAttributeSeparationFixer #3
2 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue