forked from temporalio/sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
37 lines (32 loc) · 1.15 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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$header = <<<'EOF'
This file is part of Temporal package.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = Finder::create()
->exclude('tests')
->in(__DIR__ . '/src')
;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'@PHP80Migration:risky' => true,
'list_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'declare_strict_types' => true,
'void_return' => true,
'ordered_class_elements' => true,
'linebreak_after_opening_tag' => true,
'single_quote' => true,
'no_blank_lines_after_phpdoc' => true,
'unary_operator_spaces' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'trailing_comma_in_multiline_array' => true,
])
->setFinder($finder)
;