-
-
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
28 lines (25 loc) · 969 Bytes
/
Copy path.php-cs-fixer.dist.php
File metadata and controls
28 lines (25 loc) · 969 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
25
26
27
28
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('src/Migrations')
->in(sprintf('%s/src', __DIR__))
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'modernize_strpos' => true,
'constant_case' => ['case' => 'lower'],
'native_function_invocation' => ['include' => ['@all'], 'scope' => 'all', 'strict' => true],
'fully_qualified_strict_types' => true,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => null, 'import_functions' => null],
'phpdoc_separation' => true,
'phpdoc_trim' => true,
'phpdoc_var_without_name' => true,
'declare_strict_types' => true,
'array_indentation' => true,
'no_trailing_whitespace' => true,
'no_whitespace_in_blank_line' => true,
'single_blank_line_at_eof' => true,
])
->setFinder($finder)
;