-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
28 lines (26 loc) · 760 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
28 lines (26 loc) · 760 Bytes
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
<?php
/**
* @generated
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
*/
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->exclude('test')
->exclude('tests')
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'phpdoc_order' => true,
'array_syntax' => [ 'syntax' => 'short' ],
'single_line_comment_style' => [ 'comment_types' => [ 'hash' ] ],
'strict_comparison' => true,
'strict_param' => true,
'phpdoc_indent' => true,
'phpdoc_no_package' => true,
'phpdoc_scalar' => true,
'trailing_comma_in_multiline' => [ 'elements' => [ 'arrays' ] ],
])
->setFinder($finder)
;