Skip to content

Commit 9c23808

Browse files
authored
Update php cs fixer
1 parent e9555ad commit 9c23808

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22

33
$finder = Symfony\Component\Finder\Finder::create()
4-
->notPath('bootstrap/*')
5-
->notPath('storage/*')
6-
->notPath('resources/view/mail/*')
74
->in([
85
__DIR__ . '/src',
96
__DIR__ . '/tests',
@@ -13,14 +10,14 @@
1310
->ignoreDotFiles(true)
1411
->ignoreVCS(true);
1512

16-
return PhpCsFixer\Config::create()
13+
return (new PhpCsFixer\Config())
1714
->setRules([
1815
'@PSR2' => true,
1916
'array_syntax' => ['syntax' => 'short'],
20-
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
17+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2118
'no_unused_imports' => true,
2219
'not_operator_with_successor_space' => true,
23-
'trailing_comma_in_multiline_array' => true,
20+
'trailing_comma_in_multiline' => true,
2421
'phpdoc_scalar' => true,
2522
'unary_operator_spaces' => true,
2623
'binary_operator_spaces' => true,
@@ -29,9 +26,15 @@
2926
],
3027
'phpdoc_single_line_var_spacing' => true,
3128
'phpdoc_var_without_name' => true,
29+
'class_attributes_separation' => [
30+
'elements' => [
31+
'method' => 'one',
32+
],
33+
],
3234
'method_argument_space' => [
3335
'on_multiline' => 'ensure_fully_multiline',
3436
'keep_multiple_spaces_after_comma' => true,
35-
]
37+
],
38+
'single_trait_insert_per_statement' => true,
3639
])
3740
->setFinder($finder);

0 commit comments

Comments
 (0)