Skip to content

Commit

Permalink
.php_cs.dist
Browse files Browse the repository at this point in the history
.editorconfig
  • Loading branch information
mariuszkrzaczkowski committed Aug 16, 2022
1 parent 75203ec commit 0f5f451
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
@@ -1,5 +1,18 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120


[**/*.json]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
14 changes: 9 additions & 5 deletions .php_cs.dist
Expand Up @@ -3,14 +3,16 @@
$config = \PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setIndent("\t")
->setUsingCache(false)
->setCacheFile(__DIR__ . '/.php-cs-fixer.cache')
->setRules([
'@PHP56Migration' => true,
'@PHPUnit60Migration:risky' => true,
'@PHP74Migration' => true,
'@PHP74Migration:risky' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'list_syntax' => ['syntax' => 'short'],
'@PSR2' => true,
'list_syntax' => ['syntax' => 'short'],
'align_multiline_comment' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_namespace' => true,
Expand All @@ -27,6 +29,7 @@ $config = \PhpCsFixer\Config::create()
],
'explicit_string_variable' => false,
'declare_equal_normalize' => true,
'declare_strict_types' => false,
'dir_constant' => false,
'doctrine_annotation_braces' => true,
'doctrine_annotation_indentation' => true,
Expand Down Expand Up @@ -145,13 +148,14 @@ $config = \PhpCsFixer\Config::create()
'switch_case_space' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => false,
'trailing_comma_in_multiline' => ['after_heredoc' => false, 'elements' => []],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
'property',
'method',
],
'void_return' => false,
'whitespace_after_comma_in_array' => true,
])
->setFinder(PhpCsFixer\Finder::create()
Expand Down

0 comments on commit 0f5f451

Please sign in to comment.