-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.php_cs
32 lines (29 loc) · 870 Bytes
/
.php_cs
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
<?php
// vim: syntax=php:
use PhpCsFixer\Finder;
use PhpCsFixer\Config;
$finder = Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/benchmark')
->in(__DIR__ . '/tests')
;
return Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_return' => false,
'cast_spaces' => false,
'concat_space' => ['spacing' => 'one'],
'linebreak_after_opening_tag' => true,
'no_blank_lines_before_namespace' => true,
'no_php4_constructor' => true,
'no_short_echo_tag' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'psr0' => true,
'semicolon_after_instruction' => true,
'single_blank_line_before_namespace' => false,
])
->setRiskyAllowed(true)
->setFinder($finder)
;