-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.php_cs.dist
28 lines (26 loc) · 874 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('storage')
->exclude('bootstrap')
->exclude('tests/Feature/__snapshots__')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'method_argument_space' => ['on_multiline' => 'ignore'],
'ordered_imports' => [
'sortAlgorithm' => 'alpha',
],
'braces' => [
'allow_single_line_closure' => true,
],
'trailing_comma_in_multiline_array' => true,
'single_quote' => false,
'space_after_semicolon' => true,
'single_blank_line_before_namespace' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
// This is for phpunit functions with no visibility (attr: Adam Wathan)
'visibility_required' => false,
])
->setFinder($finder);