-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.php_cs
35 lines (33 loc) · 1.23 KB
/
.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
27
28
29
30
31
32
33
34
35
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->files()
->name('*.php')
->in('src');
return Symfony\CS\Config\Config::create()
->level(\Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers(array(
// All items of the @param, @throws, @return, @var, and @type phpdoc
// tags must be aligned vertically.
'phpdoc_params',
// Convert double quotes to single quotes for simple strings.
'single_quote',
// Group and seperate @phpdocs with empty lines.
'phpdoc_separation',
// An empty line feed should precede a return statement.
'return',
// Remove trailing whitespace at the end of blank lines.
'whitespacy_lines',
// Removes extra empty lines.
'extra_empty_lines',
// Unused use statements must be removed.
'unused_use',
// PHP code MUST use only UTF-8 without BOM (remove BOM).
'encoding',
// A file must always end with a single empty line feed.
'eof_ending',
// All PHP files must use the Unix LF (linefeed) line ending.
'linefeed',
// Remove trailing whitespace at the end of non-blank lines.
'trailing_spaces',
))
->finder($finder);