Skip to content
Snippets Groups Projects
Commit a93c810e authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Fix php-cs-fixer config

Enable all current PER-CS2.0 rules in order to reflect our current
state of coding style. This was missed in #102240 because pre merge
didn't perform a full CGL run when @PER was switched to @PER-CS1.0.

Resolves: #102247
Related: #102240
Releases: main, 12.4, 11.5
Change-Id: I0e1c833ad99c4e06767dee8a2c4bcb2bdee6eb68
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81554


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent b818725f
Branches
No related merge requests found
......@@ -53,14 +53,21 @@ return (new \PhpCsFixer\Config())
'@PER-CS1.0' => true,
'array_syntax' => ['syntax' => 'short'],
'cast_spaces' => ['space' => 'none'],
// @todo: Can be dropped once we enable @PER-CS2.0
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'none'],
'declare_parentheses' => true,
'dir_constant' => true,
// @todo: Can be dropped once we enable @PER-CS2.0
'function_declaration' => [
'closure_fn_spacing' => 'none',
],
'function_to_constant' => ['functions' => ['get_called_class', 'get_class', 'get_class_this', 'php_sapi_name', 'phpversion', 'pi']],
'type_declaration_spaces' => true,
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
'list_syntax' => ['syntax' => 'short'],
// @todo: Can be dropped once we enable @PER-CS2.0
'method_argument_space' => true,
'modernize_strpos' => true,
'modernize_types_casting' => true,
'native_function_casing' => true,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment