forked from Leuchtfeuer/mautic-deutschepost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
31 lines (29 loc) · 879 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
30
31
<?php
$finder = PhpCsFixer\Finder::create()
->name('*.php')
->in(__DIR__)
->exclude('Library')
->exclude('vendor');
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
'=' => 'align',
],
],
'phpdoc_to_comment' => false,
'ordered_imports' => true,
'array_syntax' => [
'syntax' => 'short',
],
'no_unused_imports' => true,
/**
* Our templates rely heavily on things like endforeach, endif, etc.
* This setting should be turned off at least until we've switched to Twig
* (which is required for Symfony 5).
*/
'no_alternative_syntax' => false,
])
->setFinder($finder);