-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.dist.php
42 lines (40 loc) · 1.04 KB
/
.php-cs-fixer.dist.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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'class_definition' => [
'multi_line_extends_each_single_line' => true,
'single_item_single_line' => true,
],
'concat_space' => [
'spacing' => 'one',
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'native_function_invocation' => [
'include' => [
'@all',
],
],
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['class', 'function', 'const'],
],
'phpdoc_align' => [
'align' => 'left',
],
'phpdoc_to_comment' => [
'ignored_tags' => ['var'],
],
'single_line_throw' => false,
])
->setFinder($finder)
->setRiskyAllowed(true)
;