-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
29 lines (27 loc) · 965 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
<?php
$finder = (new \PhpCsFixer\Finder())
->in([
__DIR__ . '/src',
__DIR__ . '/tests/'
])
;
return (new \PhpCsFixer\Config())
/**
* {@link https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/index.rst}
* {@link https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/rules/index.rst}
*/
->setRules([
'array_syntax' => ['syntax' => 'short'],
'yoda_style' => false,
'phpdoc_to_comment' => false,
'phpdoc_align' => ['align' => 'left'],
'global_namespace_import' => ['import_classes' => true, 'import_constants' => false, 'import_functions' => false],
'increment_style' => ['style' => 'post'],
'phpdoc_separation' => false,
'single_line_throw' => false,
'blank_line_before_statement' => false,
'no_blank_lines_after_phpdoc' => false,
'concat_space' => ['spacing' => 'one'],
])
->setFinder($finder)
;