-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php_cs
More file actions
40 lines (37 loc) · 1.04 KB
/
Copy path.php_cs
File metadata and controls
40 lines (37 loc) · 1.04 KB
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
<?php
/**
* Config file for PHP-CS-Fixer.
*
* Fixers based on a modification of StyleCI's Laravel preset:
* https://styleci.readme.io/docs/presets
*/
$finder = PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
$rules = [
'@Symfony' => true,
'@PHP70Migration' => true,
'@PHP71Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'not_operator_with_successor_space' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_align' => false,
'phpdoc_no_alias_tag' => false,
'phpdoc_summary' => false,
'phpdoc_no_empty_return' => false,
'trailing_comma_in_multiline_array' => true,
'single_blank_line_at_eof' => false,
'yoda_style' => false,
];
return PhpCsFixer\Config::create()
->setRules($rules)
->setFinder($finder)
->setUsingCache(false);