-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.dist
More file actions
31 lines (27 loc) · 900 Bytes
/
.php_cs.dist
File metadata and controls
31 lines (27 loc) · 900 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
28
29
30
31
<?php
$header = <<<EOF
This is part of the webuni/easyadmin-extensions package.
(c) Martin Hasoň <martin.hason@gmail.com>
(c) Webuni s.r.o. <info@webuni.cz>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'@PHP71Migration' => true,
'@Symfony' => true,
'@PHP71Migration:risky' => true,
'@Symfony:risky' => true,
'@PHPUnit60Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => [
'header' => $header,
],
'ordered_class_elements' => true,
'ordered_imports' => true,
))
->setLineEnding("\n")
->setUsingCache(false)
->setFinder(PhpCsFixer\Finder::create()->in([__DIR__.'/src', __DIR__.'/tests']))
;