-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
43 lines (40 loc) · 1.05 KB
/
.php-cs-fixer.dist.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
34
35
36
37
38
39
40
41
42
43
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = (new Finder())
->in([
__DIR__,
])
->path([
'src',
'tests',
'.php-cs-fixer.dist.php',
])
->notPath([
'src/Laravel/Skeleton/',
])
;
return (new Config())
->setRules([
'@Symfony' => true,
'@PSR12' => true,
'@PER-CS' => true,
'@PhpCsFixer' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
],
'new_with_braces' => [
'anonymous_class' => false,
],
'not_operator_with_successor_space' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'php_unit_test_class_requires_covers' => false,
])
->setFinder($finder)
;