-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
26 lines (25 loc) · 827 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
26
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
// addtional rules
'array_syntax' => ['syntax' => 'short'],
'no_multiline_whitespace_before_semicolons' => true,
'no_short_echo_tag' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'method_argument_space' => ['ensure_fully_multiline' => false]
])
->setFinder(
PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->notName('composer.lock')
->notName('_ide_helper.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
);