forked from apiato/apiato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
33 lines (30 loc) · 946 Bytes
/
.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
<?php
use PhpCsFixer\Finder;
$finder = Finder::create()
->in([
__DIR__ . '/app',
])
->name('*.php')
->notName('*.blade.php')
->exclude('Containers/Vendor')
->notName('_*');
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
],
'phpdoc_align' => [
'align' => 'left',
],
'trailing_comma_in_multiline' => [
'elements' => ['arguments', 'arrays', 'match', 'parameters'],
],
'blank_line_before_statement' => [
'statements' => ['return', 'throw', 'try'],
],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
'nullable_type_declaration' => ['syntax' => 'union'],
])
->setFinder($finder);