-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
24 lines (23 loc) · 784 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
24 lines (23 loc) · 784 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
<?php
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules([
'@PER-CS2.0' => true,
'logical_operators' => true,
'modernize_types_casting' => true,
'nullable_type_declaration_for_default_null_value' => true,
'single_quote' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arguments', 'array_destructuring', 'arrays']],
])
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true),
);