forked from BRACKETS-by-TRIAD/craftable-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
25 lines (23 loc) · 801 Bytes
/
.php_cs
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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->notPath('bootstrap')
->notPath('storage')
->notPath('routes')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php');
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'no_unused_imports' => true,
'blank_line_after_opening_tag' => true,
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'],
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_order' => true,
'phpdoc_align' => ['align' => 'left'],
'no_leading_import_slash' => true,
])
->setFinder($finder);