Skip to content

Commit f659e61

Browse files
author
Nico Stapelbroek
committed
Cleanup the .php_cs.dist file
1 parent 1904d0e commit f659e61

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.php_cs.dist

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
<?php
22

3-
$cacheFile = getenv('TRAVIS') ? getenv('HOME') . '/.php_cs.cache' : __DIR__ . '/.php_cs.cache';
4-
$config = PhpCsFixer\Config::create()
5-
->setRules(array(
3+
return PhpCsFixer\Config::create()
4+
->setRules([
65
'@PSR2' => true,
76
'single_blank_line_before_namespace' => true,
8-
'concat_space' => array('spacing' => 'one'),
7+
'concat_space' => ['spacing' => 'one'],
98
'single_quote' => true,
109
'braces' => true,
11-
))
10+
])
11+
1212
->setFinder(
1313
PhpCsFixer\Finder::create()
1414
->exclude('vendor')
1515
->exclude('docs')
1616
->in(__DIR__)
1717
)
18-
->setCacheFile($cacheFile)
19-
->setUsingCache(true)
20-
->setRiskyAllowed(true);
2118

22-
return $config;
19+
->setRiskyAllowed(true);
2320

0 commit comments

Comments
 (0)