Issues (1)

.php_cs.php (1 issue)

1
0 ignored issues
show
It is not recommended to output anything before PHP's opening tag in non-template files.
Loading history...
2
<?php
3
$finder = \PhpCsFixer\Finder::create()
4
    ->in(__DIR__)
5
    ->exclude([
6
        'vendor'
7
    ])
8
    ->name('*.php')
9
    ->ignoreDotFiles(true)
10
    ->ignoreVCS(true);
11
return \PhpCsFixer\Config::create()
12
    ->setRules([
13
        '@PSR2' => true,
14
        'array_syntax' => ['syntax' => 'short'],
15
        'ordered_imports' => ['sortAlgorithm' => 'alpha'],
16
        'no_unused_imports' => true,
17
    ])
18
    ->setFinder($finder);
19