forked from BitBagCommerce/SyliusShippingExportPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
40 lines (40 loc) · 1023 Bytes
/
.php_cs.dist
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
<?php
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short'
],
'yoda_style' => [
'equal' => false,
'identical' => false,
],
'combine_consecutive_unsets' => true,
'native_function_invocation' => [
'include' => [
'@compiler_optimized'
]
],
'no_extra_blank_lines' => [
'break',
'continue',
'extra',
'return',
'throw',
'use',
'parenthesis_brace_block',
'square_brace_block',
'curly_brace_block',
],
'ordered_class_elements' => true,
'ordered_imports' => true,
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in('src')->in('tests')
->files()->name('*.php')
)
;