Skip to content

Commit 8b7b7f7

Browse files
committed
Update PHP-CS-Fixer, lint files
1 parent ae4dd47 commit 8b7b7f7

File tree

10 files changed

+658
-668
lines changed

10 files changed

+658
-668
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
3+
$finder = (new PhpCsFixer\Finder())
44
->in(__DIR__)
55
->exclude('var')
66
;
77

8-
return PhpCsFixer\Config::create()
8+
return (new PhpCsFixer\Config())
99
->setRules([
1010
'@Symfony' => true,
1111
'ordered_imports' => true, // Order "use" alphabetically
1212
'array_syntax' => ['syntax' => 'short'], // Replace array() by []
1313
'no_useless_return' => true, // Keep return null;
1414
'phpdoc_order' => true, // Clean up the /** php doc */
1515
'linebreak_after_opening_tag' => true,
16-
'no_multiline_whitespace_before_semicolons' => true,
16+
'multiline_whitespace_before_semicolons' => false,
1717
'phpdoc_add_missing_param_annotation' => true,
1818
'single_trait_insert_per_statement' => false
1919
])

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"doctrine/doctrine-bundle": "^2.4",
1111
"doctrine/doctrine-migrations-bundle": "^3.1",
1212
"doctrine/orm": "^2.9",
13-
"friendsofphp/php-cs-fixer": "^2.15",
1413
"phpdocumentor/reflection-docblock": "^5.2",
1514
"sabre/dav": "^4.1",
1615
"sensio/framework-extra-bundle": "^5.5",
@@ -38,6 +37,7 @@
3837
"symfony/yaml": "*"
3938
},
4039
"require-dev": {
40+
"friendsofphp/php-cs-fixer": "^3.2",
4141
"phpunit/phpunit": "^9.5",
4242
"symfony/browser-kit": "5.3.*",
4343
"symfony/css-selector": "5.3.*",

0 commit comments

Comments
 (0)