This repository was archived by the owner on Mar 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
54 lines (49 loc) · 1.71 KB
/
.php-cs-fixer.dist.php
File metadata and controls
54 lines (49 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
declare(strict_types=1);
use ErickSkrauch\PhpCsFixer\Fixers;
putenv('PHP_CS_FIXER_IGNORE_ENV=1');
$finder = (new PhpCsFixer\Finder())
->in([
__DIR__ . DIRECTORY_SEPARATOR . 'src',
__DIR__ . DIRECTORY_SEPARATOR . 'tests',
__DIR__ . DIRECTORY_SEPARATOR . 'migrations',
__DIR__ . DIRECTORY_SEPARATOR . 'public',
__DIR__ . DIRECTORY_SEPARATOR . 'config',
])
->exclude('var')
;
return (new PhpCsFixer\Config())
->registerCustomFixers(new Fixers())
->setRules([
'@Symfony' => true,
'ErickSkrauch/align_multiline_parameters' => true,
'ErickSkrauch/blank_line_before_return' => true,
'ErickSkrauch/multiline_if_statement_braces' => true,
'concat_space' => [
'spacing' => 'one'
],
'class_attributes_separation' => [
'elements' => [
'method' => 'one',
'const' => 'none'
],
],
'cast_spaces' => false,
'yoda_style' => false,
'trailing_comma_in_multiline' => false,
'braces_position' => [
'classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end'
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true
],
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
],
'single_line_throw' => false,
])
->setFinder($finder)
;