Yaffs site version 1.1
[yaffs-website] / vendor / sebastian / diff / .php_cs
1 <?php
2 $header = <<<'EOF'
3 This file is part of sebastian/diff.
4
5 (c) Sebastian Bergmann <sebastian@phpunit.de>
6
7 For the full copyright and license information, please view the LICENSE
8 file that was distributed with this source code.
9 EOF;
10
11 return PhpCsFixer\Config::create()
12     ->setRiskyAllowed(true)
13     ->setRules(
14         [
15             'array_syntax' => ['syntax' => 'long'],
16             'binary_operator_spaces' => [
17                 'align_double_arrow' => true,
18                 'align_equals' => true
19             ],
20             'blank_line_after_namespace' => true,
21             'blank_line_before_return' => true,
22             'braces' => true,
23             'cast_spaces' => true,
24             'concat_space' => ['spacing' => 'one'],
25             'elseif' => true,
26             'encoding' => true,
27             'full_opening_tag' => true,
28             'function_declaration' => true,
29             'header_comment' => ['header' => $header, 'separate' => 'none'],
30             'indentation_type' => true,
31             'line_ending' => true,
32             'lowercase_constants' => true,
33             'lowercase_keywords' => true,
34             'method_argument_space' => true,
35             'native_function_invocation' => true,
36             'no_alias_functions' => true,
37             'no_blank_lines_after_class_opening' => true,
38             'no_blank_lines_after_phpdoc' => true,
39             'no_closing_tag' => true,
40             'no_empty_phpdoc' => true,
41             'no_empty_statement' => true,
42             'no_extra_consecutive_blank_lines' => true,
43             'no_leading_namespace_whitespace' => true,
44             'no_singleline_whitespace_before_semicolons' => true,
45             'no_spaces_after_function_name' => true,
46             'no_spaces_inside_parenthesis' => true,
47             'no_trailing_comma_in_list_call' => true,
48             'no_trailing_whitespace' => true,
49             'no_unused_imports' => true,
50             'no_whitespace_in_blank_line' => true,
51             'phpdoc_align' => true,
52             'phpdoc_indent' => true,
53             'phpdoc_no_access' => true,
54             'phpdoc_no_empty_return' => true,
55             'phpdoc_no_package' => true,
56             'phpdoc_scalar' => true,
57             'phpdoc_separation' => true,
58             'phpdoc_to_comment' => true,
59             'phpdoc_trim' => true,
60             'phpdoc_types' => true,
61             'phpdoc_var_without_name' => true,
62             'self_accessor' => true,
63             'simplified_null_return' => true,
64             'single_blank_line_at_eof' => true,
65             'single_import_per_statement' => true,
66             'single_line_after_imports' => true,
67             'single_quote' => true,
68             'ternary_operator_spaces' => true,
69             'trim_array_spaces' => true,
70             'visibility_required' => true,
71         ]
72     )
73     ->setFinder(
74         PhpCsFixer\Finder::create()
75         ->files()
76         ->in(__DIR__ . '/src')
77         ->in(__DIR__ . '/tests')
78         ->name('*.php')
79     );