Skip to content

Commit dea8cf6

Browse files
committed
[TASK] Align coding guidelines with latest TYPO3 Core master
1 parent 3a5d882 commit dea8cf6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/CsFixerConfig.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@ class CsFixerConfig extends Config
3131
'@DoctrineAnnotation' => true,
3232
'@PSR2' => true,
3333
'array_syntax' => ['syntax' => 'short'],
34+
'blank_line_after_opening_tag' => true,
35+
'braces' => ['allow_single_line_closure' => true],
3436
'cast_spaces' => ['space' => 'none'],
37+
'compact_nullable_typehint' => true,
3538
'concat_space' => ['spacing' => 'one'],
36-
'declare_equal_normalize' => ['space' => 'single'],
39+
'declare_equal_normalize' => ['space' => 'none'],
3740
'dir_constant' => true,
3841
'function_typehint_space' => true,
3942
'hash_to_slash_comment' => true,
4043
'lowercase_cast' => true,
44+
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
4145
'modernize_types_casting' => true,
4246
'native_function_casing' => true,
47+
'new_with_braces' => true,
4348
'no_alias_functions' => true,
4449
'no_blank_lines_after_phpdoc' => true,
4550
'no_empty_phpdoc' => true,
@@ -69,7 +74,8 @@ class CsFixerConfig extends Config
6974
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
7075
'return_type_declaration' => ['space_before' => 'none'],
7176
'single_quote' => true,
72-
'whitespace_after_comma_in_array' => true
77+
'single_trait_insert_per_statement' => true,
78+
'whitespace_after_comma_in_array' => true,
7379
];
7480

7581
public function __construct($name = 'TYPO3')

0 commit comments

Comments
 (0)