forked from mlocati/ip-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
35 lines (28 loc) · 940 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
29
30
31
32
33
34
35
<?php
if (!class_exists('PhpCsFixer\Config', true)) {
fwrite(STDERR, "Your php-cs-version is outdated: please upgrade it.\n");
die(16);
}
return PhpCsFixer\Config::create()
->setCacheFile(dirname(__FILE__).'/.php_cs.cache')
->setRules(array(
// Let's start with the standard Symfony rules
'@Symfony' => true,
// Force long array syntax
'array_syntax' => array('syntax' => 'long'),
// A single space between cast and variable
'cast_spaces' => true,
// Concatenation should be spaced with a space
'concat_space' => array(
'spacing' => 'none',
),
// Don't vertically align phpdoc tags
'phpdoc_align' => false,
// Allow double-quoted strings, don't force single-quoted strings
'single_quote' => true,
))
->setFinder(
PhpCsFixer\Finder::create()
->in(dirname(__FILE__))
)
;