mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 00:54:12 +01:00
N°8796 - Refactor PHP CS Fixer configuration for improved readability
* `'indentation_type'` already included in @PSR12 rule set
This commit is contained in:
@@ -13,13 +13,12 @@ $config = new PhpCsFixer\Config();
|
||||
return $config->setRiskyAllowed(true)
|
||||
->setRules([
|
||||
'@PSR12' => true,
|
||||
'indentation_type' => true,
|
||||
'no_extra_blank_lines' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'concat_space' => true,
|
||||
'trailing_comma_in_multiline' => true,
|
||||
'no_extra_blank_lines' => true, // default value ['tokens' => ['extra']]
|
||||
'array_syntax' => true, // default value ['syntax' => 'short']
|
||||
'concat_space' => true, // default value ['spacing' => 'none']
|
||||
'trailing_comma_in_multiline' => true, // default value ['after_heredoc' => false, 'elements' => ['arrays']]
|
||||
])
|
||||
->setIndent("\t")
|
||||
->setLineEnding("\n")
|
||||
->setFinder($finder)
|
||||
;
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user