-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
34 lines (32 loc) · 832 Bytes
/
.php-cs-fixer.php
File metadata and controls
34 lines (32 loc) · 832 Bytes
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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->setFinder(
Finder::create()
->in(__DIR__)
->exclude('vendor')
)
->setRules([
'@Symfony' => true,
'@PhpCsFixer' => true,
'@DoctrineAnnotation' => true,
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => '',
'separate' => 'none',
'location' => 'after_declare_strict',
],
'list_syntax' => [
'syntax' => 'short'
],
'concat_space' => [
'spacing' => 'one'
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
])
->setUsingCache(false);