-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php_cs.dist
More file actions
27 lines (25 loc) · 793 Bytes
/
Copy path.php_cs.dist
File metadata and controls
27 lines (25 loc) · 793 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
<?php
// see https://github.com/FriendsOfPHP/PHP-CS-Fixer
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('var', 'vendor')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => false,
'native_function_invocation' => true,
'ordered_imports' => true,
'phpdoc_align' => ['align' => 'vertical'],
'phpdoc_separation' => true,
'phpdoc_summary' => false,
'single_blank_line_at_eof' => true,
])
->setFinder($finder)
;