Skip to content

Commit a330a1a

Browse files
committed
Update php-cs-fixer to 3.0.0
1 parent b2a9e91 commit a330a1a

File tree

3 files changed

+100
-181
lines changed

3 files changed

+100
-181
lines changed

.php_cs.dist renamed to .php-cs-fixer.dist.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
2121
->exclude('setup/vendor')
2222
->exclude('var');
2323

24-
return PhpCsFixer\Config::create()
25-
->setFinder($finder)
24+
$config = new PhpCsFixer\Config();
25+
$config->setFinder($finder)
2626
->setRules([
2727
'@PSR2' => true,
2828
'array_syntax' => ['syntax' => 'short'],
2929
'concat_space' => ['spacing' => 'one'],
3030
'include' => true,
3131
'new_with_braces' => true,
3232
'no_empty_statement' => true,
33-
'no_extra_consecutive_blank_lines' => true,
33+
'no_extra_blank_lines' => true,
3434
'no_leading_import_slash' => true,
3535
'no_leading_namespace_whitespace' => true,
3636
'no_multiline_whitespace_around_double_arrow' => true,
37-
'no_multiline_whitespace_before_semicolons' => true,
37+
'multiline_whitespace_before_semicolons' => true,
3838
'no_singleline_whitespace_before_semicolons' => true,
3939
'no_trailing_comma_in_singleline_array' => true,
4040
'no_unused_imports' => true,
@@ -44,3 +44,4 @@
4444
'standardize_not_equals' => true,
4545
'ternary_operator_spaces' => true,
4646
]);
47+
return $config;

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"require-dev": {
8282
"allure-framework/allure-phpunit": "~1.4",
8383
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
84-
"friendsofphp/php-cs-fixer": "~2.18.1",
84+
"friendsofphp/php-cs-fixer": "~3.0.0",
8585
"lusitanian/oauth": "~0.8.10",
8686
"magento/magento-coding-standard": "*",
8787
"magento/magento2-functional-testing-framework": "^3.0",

0 commit comments

Comments
 (0)