-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.php-cs-fixer.dist.php
48 lines (42 loc) · 1.33 KB
/
.php-cs-fixer.dist.php
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
39
40
41
42
43
44
45
46
47
48
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
]);
$config = new class() extends PhpCsFixer\Config {
public function __construct()
{
parent::__construct('Bedrock Streaming');
$this->setRiskyAllowed(true);
}
public function getRules(): array
{
return array_merge((new M6Web\CS\Config\BedrockStreaming())->getRules(), [
'no_unreachable_default_argument_value' => true,
'trailing_comma_in_multiline' => [
'after_heredoc' => true,
'elements' => ['arrays', 'arguments', 'parameters'],
],
'native_function_invocation' => [
'include' => ['@compiler_optimized']
],
'simplified_null_return' => false,
'void_return' => true,
'phpdoc_order' => true,
'phpdoc_types_order' => false,
'no_superfluous_phpdoc_tags' => true,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'static',
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false
],
]);
}
};
$config
->setFinder($finder)
->setCacheFile('var/cache/tools/.php-cs-fixer.cache');
return $config;