forked from diablomedia/phpunit-pretty-printer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
33 lines (31 loc) · 1019 Bytes
/
.php-cs-fixer.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
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->notPath('tests/phpt')
->files()
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
return $config->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@PHP70Migration' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true],
'binary_operator_spaces' => array(
'default' => 'align_single_space_minimal',
'operators' => array('||' => null, '&&' => null)
),
'single_quote' => false,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'dir_constant' => true,
'no_mixed_echo_print' => ['use' => 'echo'],
'no_unused_imports' => true,
'declare_strict_types' => false
])
->setUsingCache(true)
->setFinder($finder);
;