Skip to content

Commit 294ceab

Browse files
committed
Update CS-Fixer config
1 parent efee916 commit 294ceab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: .php-cs-fixer.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$finder = (new PhpCsFixer\Finder())
44
->notPath('config')
55
->notPath('vendor')
6+
->notPath('Facades')
67
->in(__DIR__)
78
->name('*.php')
89
->notName('*.blade.php')
@@ -38,21 +39,19 @@
3839
'while',
3940
],
4041
],
41-
'braces' => true,
4242
'cast_spaces' => [
4343
'space' => 'single',
4444
],
4545
'class_definition' => true,
4646
'combine_consecutive_issets' => true,
4747
'combine_consecutive_unsets' => true,
48-
'compact_nullable_typehint' => true,
48+
'compact_nullable_type_declaration' => true,
4949
'concat_space' => [
5050
'spacing' => 'one',
5151
],
5252
'declare_strict_types' => false,
5353
'dir_constant' => true,
5454
'function_to_constant' => true,
55-
'function_typehint_space' => true,
5655
'increment_style' => [
5756
'style' => 'post',
5857
],
@@ -70,7 +69,7 @@
7069
'native_constant_invocation' => true,
7170
'native_function_casing' => true,
7271
'native_function_invocation' => true,
73-
'new_with_braces' => true,
72+
'new_with_parentheses' => true,
7473
'no_alias_functions' => true,
7574
'no_blank_lines_after_class_opening' => true,
7675
'no_blank_lines_after_phpdoc' => true,
@@ -83,9 +82,9 @@
8382
'no_null_property_initialization' => true,
8483
'no_short_bool_cast' => true,
8584
'no_spaces_after_function_name' => true,
86-
'no_spaces_inside_parenthesis' => true,
85+
'spaces_inside_parentheses' => false,
8786
'no_superfluous_elseif' => true,
88-
'no_trailing_comma_in_singleline_array' => true,
87+
'no_trailing_comma_in_singleline' => true,
8988
'no_trailing_whitespace' => true,
9089
'no_trailing_whitespace_in_comment' => true,
9190
'no_unneeded_control_parentheses' => true,
@@ -115,6 +114,7 @@
115114
'arrays',
116115
],
117116
],
117+
'type_declaration_spaces' => true,
118118
'visibility_required' => [
119119
'elements' => ['property', 'method', 'const'],
120120
],

0 commit comments

Comments
 (0)