forked from ajcastro/eager-load-pivot-relations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
38 lines (33 loc) · 1.17 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
<?php
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = PhpCsFixer\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
;
$config = new PhpCsFixer\Config();
$config
->setParallelConfig(ParallelConfigFactory::detect())
->setLineEnding("\n")
->setCacheFile(__DIR__.'/.php-cs-fixer.cache')
->setIndent(' ')
->setRules([
'@Symfony' => true,
'binary_operator_spaces' => ['operators' => ['=>' => 'align']],
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'increment_style' => ['style' => 'post'],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => null,
'import_functions' => null,
],
])
->setFinder($finder);
return $config;