|
3 | 3 | $finder = (new PhpCsFixer\Finder())
|
4 | 4 | ->notPath('config')
|
5 | 5 | ->notPath('vendor')
|
| 6 | + ->notPath('Facades') |
6 | 7 | ->in(__DIR__)
|
7 | 8 | ->name('*.php')
|
8 | 9 | ->notName('*.blade.php')
|
|
38 | 39 | 'while',
|
39 | 40 | ],
|
40 | 41 | ],
|
41 |
| - 'braces' => true, |
42 | 42 | 'cast_spaces' => [
|
43 | 43 | 'space' => 'single',
|
44 | 44 | ],
|
45 | 45 | 'class_definition' => true,
|
46 | 46 | 'combine_consecutive_issets' => true,
|
47 | 47 | 'combine_consecutive_unsets' => true,
|
48 |
| - 'compact_nullable_typehint' => true, |
| 48 | + 'compact_nullable_type_declaration' => true, |
49 | 49 | 'concat_space' => [
|
50 | 50 | 'spacing' => 'one',
|
51 | 51 | ],
|
52 | 52 | 'declare_strict_types' => false,
|
53 | 53 | 'dir_constant' => true,
|
54 | 54 | 'function_to_constant' => true,
|
55 |
| - 'function_typehint_space' => true, |
56 | 55 | 'increment_style' => [
|
57 | 56 | 'style' => 'post',
|
58 | 57 | ],
|
|
70 | 69 | 'native_constant_invocation' => true,
|
71 | 70 | 'native_function_casing' => true,
|
72 | 71 | 'native_function_invocation' => true,
|
73 |
| - 'new_with_braces' => true, |
| 72 | + 'new_with_parentheses' => true, |
74 | 73 | 'no_alias_functions' => true,
|
75 | 74 | 'no_blank_lines_after_class_opening' => true,
|
76 | 75 | 'no_blank_lines_after_phpdoc' => true,
|
|
83 | 82 | 'no_null_property_initialization' => true,
|
84 | 83 | 'no_short_bool_cast' => true,
|
85 | 84 | 'no_spaces_after_function_name' => true,
|
86 |
| - 'no_spaces_inside_parenthesis' => true, |
| 85 | + 'spaces_inside_parentheses' => false, |
87 | 86 | 'no_superfluous_elseif' => true,
|
88 |
| - 'no_trailing_comma_in_singleline_array' => true, |
| 87 | + 'no_trailing_comma_in_singleline' => true, |
89 | 88 | 'no_trailing_whitespace' => true,
|
90 | 89 | 'no_trailing_whitespace_in_comment' => true,
|
91 | 90 | 'no_unneeded_control_parentheses' => true,
|
|
115 | 114 | 'arrays',
|
116 | 115 | ],
|
117 | 116 | ],
|
| 117 | + 'type_declaration_spaces' => true, |
118 | 118 | 'visibility_required' => [
|
119 | 119 | 'elements' => ['property', 'method', 'const'],
|
120 | 120 | ],
|
|
0 commit comments