-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.php_cs.dist
34 lines (32 loc) · 995 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
<?php
if (!class_exists('PhpCsFixer\Config', true)) {
fwrite(STDERR, "Your php-cs-version is outdated: please upgrade it.\n");
die(16);
}
return PhpCsFixer\Config::create()
->setCacheFile(__DIR__ . '/.php_cs.cache')
->setRules([
'@Symfony' => true,
'yoda_style' => false,
'array_syntax' => ['syntax' => 'short'],
'cast_spaces' => true,
'concat_space' => [
'spacing' => 'one',
],
'single_blank_line_before_namespace' => false,
'no_blank_lines_before_namespace' => true,
'blank_line_after_opening_tag' => false,
'phpdoc_align' => false,
'single_quote' => true,
'ordered_imports' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/php')
->append([
__DIR__ . '/bin/update-docs',
__DIR__ . '/bin/update-docs-all',
__DIR__ . '/bin/php_cs.dist',
])
)
;