diff options
Diffstat (limited to 'ecs.php')
| -rw-r--r-- | ecs.php | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -0,0 +1,28 @@ +<?php + +declare(strict_types=1); + +use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer; +use PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer; +use Symplify\EasyCodingStandard\Config\ECSConfig; + +return ECSConfig::configure() + ->withPaths([ + __DIR__ . '/src', + __DIR__ . '/tests', + ]) + ->withPreparedSets( + psr12: true, + common: true, + cleanCode: true, + ) + ->withEditorConfig() + ->withRules([ + NativeFunctionInvocationFixer::class, + ]) + ->withConfiguredRule(GlobalNamespaceImportFixer::class, [ + 'import_classes' => true, + 'import_constants' => true, + 'import_functions' => true, + ]) +; |
