forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
25 lines (22 loc) · 975 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\CS\Finder\DefaultFinder::create()
->in(array('lib', 'test'));
$config = Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(array(
// [contrib] Multi-line whitespace before closing semicolon are prohibited.
'multiline_spaces_before_semicolon',
// [contrib] There should be no blank lines before a namespace declaration.
'no_blank_lines_before_namespace',
// [contrib] Ordering use statements.
'ordered_use',
// [contrib] Annotations should be ordered so that param annotations come first, then throws annotations, then return annotations.
'phpdoc_order',
// [contrib] Arrays should use the long syntax.
'short_array_syntax',
// [contrib] Ensure there is no code on the same line as the PHP open tag.
'newline_after_open_tag',
))
->finder($finder);
return $config;