forked from webinarium/linode-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
49 lines (46 loc) · 1.62 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
44
45
46
47
48
49
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@DoctrineAnnotation' => true,
'@PHP80Migration:risky' => true,
'@PHP83Migration' => true,
'@PHPUnit100Migration:risky' => true,
// Rules override
'binary_operator_spaces' => [
'default' => null,
'operators' => [
'=' => 'align',
'+=' => 'align',
'-=' => 'align',
'*=' => 'align',
'/=' => 'align',
'%=' => 'align',
'**=' => 'align',
'&=' => 'align',
'|=' => 'align',
'^=' => 'align',
'<<=' => 'align',
'>>=' => 'align',
'.=' => 'align',
'??=' => 'align',
'=>' => 'align',
],
],
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => false,
'increment_style' => ['style' => 'post'],
'native_function_invocation' => false,
'phpdoc_annotation_without_dot' => false,
'whitespace_after_comma_in_array' => ['ensure_single_space' => false],
])
->setFinder($finder)
;