-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs.dist
38 lines (32 loc) · 1.03 KB
/
.php_cs.dist
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
$header = <<<EOT
This file is part of the Phamda library
(c) Mikael Pajunen <[email protected]>
For the full copyright and license information, please see the LICENSE
file that was distributed with this source code.
EOT;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'align_equals' => true,
],
'braces' => [
'allow_single_line_closure' => true,
],
'concat_space' => [
'spacing' => 'one',
],
'header_comment' => [
'header' => $header,
],
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'phpdoc_annotation_without_dot' => false,
])
->setFinder($finder);