Skip to content

Commit

Permalink
Force import of global classes (#19)
Browse files Browse the repository at this point in the history
Remove automatic trailing of whitespaces on strings (can break code that relies on those whitespaces)
  • Loading branch information
hugo-goncalves-kununu authored Feb 23, 2023
1 parent a18b66f commit 2c76874
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/PHP/CodeStandards/Scripts/php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'heredoc_to_nowdoc' => true,
'no_extra_blank_lines' => ['tokens' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block']],
'echo_tag_syntax' => ['format' => 'long'],
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
'phpdoc_order' => true,
'global_namespace_import' => ['import_classes' => true],
'function_declaration' => ['closure_function_spacing' => 'none'],
'ternary_to_null_coalescing' => true,
'array_indentation' => true,
Expand All @@ -51,6 +51,9 @@ return (new PhpCsFixer\Config())
'increment_style' => [],
'method_chaining_indentation' => false,
'visibility_required' => ['elements' => ['property', 'method']],
'self_static_accessor' => true,
'no_trailing_whitespace_in_string' => false,
'return_assignment' => true,
])
->setFinder($finder)
;

0 comments on commit 2c76874

Please sign in to comment.