From 5124943d048de55d57868fcae7bad92a08fb1750 Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:43:26 +0200 Subject: [PATCH] Update and rename .php_cs.dist to .php-cs-fixer.dist.php --- .php_cs.dist => .php-cs-fixer.dist.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename .php_cs.dist => .php-cs-fixer.dist.php (82%) diff --git a/.php_cs.dist b/.php-cs-fixer.dist.php similarity index 82% rename from .php_cs.dist rename to .php-cs-fixer.dist.php index ac127a7..7ee4ffa 100644 --- a/.php_cs.dist +++ b/.php-cs-fixer.dist.php @@ -6,18 +6,17 @@ __DIR__ . '/tests', ]) ->name('*.php') - ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); -return PhpCsFixer\Config::create() +return (new PhpCsFixer\Config()) ->setRules([ - '@PSR2' => true, + '@PSR12' => true, 'array_syntax' => ['syntax' => 'short'], - 'ordered_imports' => ['sortAlgorithm' => 'alpha'], + 'ordered_imports' => ['sort_algorithm' => 'alpha'], 'no_unused_imports' => true, 'not_operator_with_successor_space' => true, - 'trailing_comma_in_multiline_array' => true, + 'trailing_comma_in_multiline' => true, 'phpdoc_scalar' => true, 'unary_operator_spaces' => true, 'binary_operator_spaces' => true, @@ -28,7 +27,7 @@ 'phpdoc_var_without_name' => true, 'class_attributes_separation' => [ 'elements' => [ - 'method', + 'method' => 'one', ], ], 'method_argument_space' => [