Mercurial > hg > cmmr2012-drupal-site
comparison vendor/sebastian/diff/.php_cs @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
1:0b0e5f3b1e83 | 2:5311817fb629 |
---|---|
1 <?php | 1 <?php declare(strict_types=1); |
2 $finder = Symfony\CS\Finder\DefaultFinder::create() | 2 $header = <<<'EOF' |
3 ->files() | 3 This file is part of sebastian/diff. |
4 ->in('src') | |
5 ->in('tests') | |
6 ->name('*.php'); | |
7 | 4 |
8 return Symfony\CS\Config\Config::create() | 5 (c) Sebastian Bergmann <sebastian@phpunit.de> |
9 ->level(\Symfony\CS\FixerInterface::NONE_LEVEL) | 6 |
10 ->fixers( | 7 For the full copyright and license information, please view the LICENSE |
11 array( | 8 file that was distributed with this source code. |
12 'align_double_arrow', | 9 EOF; |
13 'align_equals', | 10 |
14 'braces', | 11 return PhpCsFixer\Config::create() |
15 'concat_with_spaces', | 12 ->setRiskyAllowed(true) |
16 'duplicate_semicolon', | 13 ->setRules( |
17 'elseif', | 14 [ |
18 'empty_return', | 15 'array_syntax' => ['syntax' => 'short'], |
19 'encoding', | 16 'binary_operator_spaces' => [ |
20 'eof_ending', | 17 'align_double_arrow' => true, |
21 'extra_empty_lines', | 18 'align_equals' => true |
22 'function_call_space', | 19 ], |
23 'function_declaration', | 20 'blank_line_after_namespace' => true, |
24 'indentation', | 21 'blank_line_before_return' => true, |
25 'join_function', | 22 'braces' => true, |
26 'line_after_namespace', | 23 'cast_spaces' => true, |
27 'linefeed', | 24 'concat_space' => ['spacing' => 'one'], |
28 'list_commas', | 25 'declare_strict_types' => true, |
29 'lowercase_constants', | 26 'elseif' => true, |
30 'lowercase_keywords', | 27 'encoding' => true, |
31 'method_argument_space', | 28 'full_opening_tag' => true, |
32 'multiple_use', | 29 'function_declaration' => true, |
33 'namespace_no_leading_whitespace', | 30 'header_comment' => ['header' => $header, 'separate' => 'none'], |
34 'no_blank_lines_after_class_opening', | 31 'indentation_type' => true, |
35 'no_empty_lines_after_phpdocs', | 32 'line_ending' => true, |
36 'parenthesis', | 33 'lowercase_constants' => true, |
37 'php_closing_tag', | 34 'lowercase_keywords' => true, |
38 'phpdoc_indent', | 35 'method_argument_space' => true, |
39 'phpdoc_no_access', | 36 'native_function_invocation' => true, |
40 'phpdoc_no_empty_return', | 37 'no_alias_functions' => true, |
41 'phpdoc_no_package', | 38 'no_blank_lines_after_class_opening' => true, |
42 'phpdoc_params', | 39 'no_blank_lines_after_phpdoc' => true, |
43 'phpdoc_scalar', | 40 'no_closing_tag' => true, |
44 'phpdoc_separation', | 41 'no_empty_phpdoc' => true, |
45 'phpdoc_to_comment', | 42 'no_empty_statement' => true, |
46 'phpdoc_trim', | 43 'no_extra_consecutive_blank_lines' => true, |
47 'phpdoc_types', | 44 'no_leading_namespace_whitespace' => true, |
48 'phpdoc_var_without_name', | 45 'no_singleline_whitespace_before_semicolons' => true, |
49 'remove_lines_between_uses', | 46 'no_spaces_after_function_name' => true, |
50 'return', | 47 'no_spaces_inside_parenthesis' => true, |
51 'self_accessor', | 48 'no_trailing_comma_in_list_call' => true, |
52 'short_tag', | 49 'no_trailing_whitespace' => true, |
53 'single_line_after_imports', | 50 'no_unused_imports' => true, |
54 'single_quote', | 51 'no_whitespace_in_blank_line' => true, |
55 'spaces_before_semicolon', | 52 'phpdoc_align' => true, |
56 'spaces_cast', | 53 'phpdoc_indent' => true, |
57 'ternary_spaces', | 54 'phpdoc_no_access' => true, |
58 'trailing_spaces', | 55 'phpdoc_no_empty_return' => true, |
59 'trim_array_spaces', | 56 'phpdoc_no_package' => true, |
60 'unused_use', | 57 'phpdoc_scalar' => true, |
61 'visibility', | 58 'phpdoc_separation' => true, |
62 'whitespacy_lines' | 59 'phpdoc_to_comment' => true, |
63 ) | 60 'phpdoc_trim' => true, |
61 'phpdoc_types' => true, | |
62 'phpdoc_var_without_name' => true, | |
63 'pow_to_exponentiation' => true, | |
64 'self_accessor' => true, | |
65 'simplified_null_return' => true, | |
66 'single_blank_line_at_eof' => true, | |
67 'single_import_per_statement' => true, | |
68 'single_line_after_imports' => true, | |
69 'single_quote' => true, | |
70 'ternary_operator_spaces' => true, | |
71 'trim_array_spaces' => true, | |
72 'visibility_required' => true, | |
73 ] | |
64 ) | 74 ) |
65 ->finder($finder); | 75 ->setFinder( |
66 | 76 PhpCsFixer\Finder::create() |
77 ->files() | |
78 ->in(__DIR__ . '/src') | |
79 ->in(__DIR__ . '/tests') | |
80 ->name('*.php') | |
81 ); |