-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.php_cs
More file actions
31 lines (28 loc) · 829 Bytes
/
.php_cs
File metadata and controls
31 lines (28 loc) · 829 Bytes
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
<?php
namespace PhpCsFixer;
$cacheDir = getenv('TRAVIS') ? getenv('HOME').'/.php-cs-fixer' : __DIR__;
return Config::create()
->setUsingCache(true)
->setCacheFile($cacheDir.'/.php_cs.cache')
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'no_multiline_whitespace_before_semicolons' => true,
'not_operator_with_space' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'psr0' => false,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
],
])
->setFinder(
Finder::create()
->in(__DIR__.'/app')
->in(__DIR__.'/config')
->in(__DIR__.'/database')
->in(__DIR__.'/tests')
);