Skip to content

Commit

Permalink
Update PHP-CS-Fixer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 4, 2023
1 parent 93b92e4 commit 0739571
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .php-cs-fixer.dist.php
Expand Up @@ -33,6 +33,7 @@
'blank_line_before_statement' => [
'statements' => [
'break',
'case',
'continue',
'declare',
'default',
Expand All @@ -44,6 +45,7 @@
'if',
'include',
'include_once',
'phpdoc',
'require',
'require_once',
'return',
Expand All @@ -52,15 +54,13 @@
'try',
'while',
'yield',
'yield_from',
],
],
'braces' => [
'position_after_anonymous_constructs' => 'next',
],
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'const' => 'one',
'const' => 'none',
'method' => 'one',
'property' => 'only_if_meta'
]
Expand All @@ -73,7 +73,14 @@
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'constant_case' => true,
'control_structure_braces' => true,
'control_structure_continuation_position' => true,
'curly_braces_position' => [
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
],
'declare_equal_normalize' => ['space' => 'none'],
'declare_parentheses' => true,
'declare_strict_types' => true,
'dir_constant' => true,
'echo_tag_syntax' => true,
Expand Down Expand Up @@ -147,6 +154,7 @@
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_mixed_echo_print' => ['use' => 'print'],
'no_multiple_statements_per_line' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
Expand Down Expand Up @@ -272,11 +280,12 @@
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_quote' => true,
'single_space_after_construct' => true,
'single_space_around_construct' => true,
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => true,
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'static_lambda' => true,
'strict_param' => true,
'string_line_ending' => true,
Expand Down

0 comments on commit 0739571

Please sign in to comment.