forked from imageinabox/wrike-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
35 lines (33 loc) · 1.06 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
<?php
$header = <<<'EOF'
This file is part of the zibios/wrike-php-sdk package.
(c) Zbigniew Ślązak
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules(
[
'@Symfony' => true,
'@PSR1' => true,
'@PSR2' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['allow_single_line_closure' => true],
'header_comment' => ['header' => $header],
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'ordered_imports' => true,
'ordered_class_elements' => true,
'psr4' => true,
'psr0' => true,
'concat_space' => ['spacing' => 'one'],
]
)
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['build', 'docs', 'vendor'])
->in(__DIR__)
);