-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.php
33 lines (27 loc) · 942 Bytes
/
.php-cs-fixer.php
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
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$header = <<<'EOF'
Your project name - Your project description
@author You <[email protected]>
2024
EOF;
$finder = (new Finder())
->ignoreDotFiles(true)
->ignoreVCSIgnored(true)
->exclude(['public', 'assets', 'tests', 'config', 'src/Factory/', 'src/DataFixtures/',])
->in(__DIR__);
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
'declare_strict_types' => true,
'header_comment' => ['header' => $header],
'no_alias_functions' => true,
'no_unneeded_final_method' => true,
'non_printable_character' => ['use_escape_sequences_in_strings' => false],
'no_break_comment' => true,
])
->setFinder($finder);