-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp-cs-fixer.dist.php
More file actions
35 lines (32 loc) · 918 Bytes
/
php-cs-fixer.dist.php
File metadata and controls
35 lines (32 loc) · 918 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
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
->exclude('vendor')
;
return (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
'@Symfony' => true,
'declare_strict_types' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'trailing_comma_in_multiline' => true,
'single_quote' => true,
'global_namespace_import' => [
'import_classes' => false,
'import_constants' => false,
'import_functions' => false,
],
'native_function_invocation' => [
'include' => ['@all'],
'scope' => 'all',
'strict' => true,
],
])
->setFinder($finder)
->setRiskyAllowed(true)
;