.php_cs 1.34 KB
Newer Older
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
	->notPath('data')
	->filter(function (SplFileInfo $file) {
        if (strstr($file->getPath(), 'compatibility')) {
            return false;
        }
    });

$config = Symfony\CS\Config\Config::create();
$config->level(null);
$config->fixers(
    array(
        'braces',
        'duplicate_semicolon',
        'elseif',
        'empty_return',
        'encoding',
        'eof_ending',
        'function_call_space',
        'function_declaration',
        'indentation',
        'join_function',
        'line_after_namespace',
        'linefeed',
        'lowercase_keywords',
        'parenthesis',
        'multiple_use',
        'method_argument_space',
        'object_operator',
        'php_closing_tag',
        'psr0',
        'remove_lines_between_uses',
        'short_tag',
        'standardize_not_equal',
        'trailing_spaces',
        'unused_use',
        'visibility',
        'whitespacy_lines',
        'ternary_spaces',
        'align_double_arrow',
        'align_equals',
        'concat_with_spaces',
        'ordered_use',
        'short_array_syntax',
        'single_array_no_trailing_comma',
        'multiline_array_trailing_comma',
        'spaces_cast',
        'return',
        'double_arrow_multiline_whitespaces',
    )
);
$config->finder($finder);

return $config;