diff --git a/inc/libs/dc.phpcsfixer.rules.php b/inc/libs/dc.phpcsfixer.rules.php index 6cc8a0b..a38f78e 100644 --- a/inc/libs/dc.phpcsfixer.rules.php +++ b/inc/libs/dc.phpcsfixer.rules.php @@ -1,22 +1,4 @@ exclude('node_modules') ->exclude('vendor') @@ -26,7 +8,7 @@ $config = new PhpCsFixer\Config(); return $config ->setRules([ - '@PSR2' => true, + '@PSR12' => true, 'array_indentation' => true, 'array_syntax' => ['syntax' => 'short'], 'binary_operator_spaces' => [ @@ -41,13 +23,11 @@ return $config 'combine_consecutive_unsets' => true, 'concat_space' => ['spacing' => 'one'], 'linebreak_after_opening_tag' => true, - 'no_blank_lines_after_class_opening' => true, 'no_blank_lines_after_phpdoc' => true, 'no_break_comment' => false, 'no_extra_blank_lines' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_whitespace_in_blank_line' => true, 'no_spaces_around_offset' => true, + 'no_trailing_comma_in_singleline_array' => true, 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, @@ -62,4 +42,4 @@ return $config 'trailing_comma_in_multiline' => false, 'trim_array_spaces' => true, ]) - ->setFinder($finder); + ->setFinder($finder); \ No newline at end of file