forked from tighten/laravelversions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
44 lines (41 loc) · 1.49 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
38
39
40
41
42
43
44
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->exclude('bootstrap')
->exclude('storage')
->in(__DIR__);
return Config::create()
->setFinder($finder)
->setRules([
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'operators' => ['=' => null],
],
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => true,
'braces' => ['allow_single_line_closure' => true],
'concat_space' => ['spacing' => 'one'],
'function_typehint_space' => true,
'lowercase_cast' => true,
'lowercase_static_reference' => true,
'native_function_casing' => true,
'no_extra_blank_lines' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_spaces_around_offset' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_whitespace_in_blank_line' => true,
'not_operator_with_successor_space' => true,
'object_operator_without_whitespace' => true,
'ordered_imports' => true,
'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
'single_quote' => true,
'space_after_semicolon' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'whitespace_after_comma_in_array' => true,
]);