diff --git a/php-cs-fixer-rules.php b/php-cs-fixer-rules.php index fe6ac8e..5d62962 100644 --- a/php-cs-fixer-rules.php +++ b/php-cs-fixer-rules.php @@ -4,6 +4,7 @@ return [ '@PSR12' => true, + 'array_indentation' => true, 'array_syntax' => true, 'binary_operator_spaces' => true, 'cast_spaces' => [ @@ -42,7 +43,12 @@ 'no_empty_phpdoc' => true, 'no_extra_blank_lines' => [ 'tokens' => [ + 'continue', 'extra', + 'parenthesis_brace_block', + 'return', + 'square_brace_block', + 'throw', 'use', ], ], diff --git a/tests/fixtures/invalid/array-indentation.php b/tests/fixtures/invalid/array-indentation.php new file mode 100644 index 0000000..cb46440 --- /dev/null +++ b/tests/fixtures/invalid/array-indentation.php @@ -0,0 +1,9 @@ + 'i am invalid', + +];