comparison vendor/phpunit/phpunit-mock-objects/.php_cs @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2 $header = <<<'EOF'
3 This file is part of the phpunit-mock-objects package.
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' => 'short'],
16 'binary_operator_spaces' => [
17 'align_double_arrow' => true,
18 'align_equals' => true
19 ],
20 'blank_line_after_namespace' => true,
21 'blank_line_before_statement' => [
22 'statements' => [
23 'break',
24 'continue',
25 'return',
26 'throw',
27 'try',
28 ],
29 ],
30 'braces' => true,
31 'cast_spaces' => true,
32 'concat_space' => ['spacing' => 'one'],
33 'elseif' => true,
34 'encoding' => true,
35 'full_opening_tag' => true,
36 'function_declaration' => true,
37 'header_comment' => ['header' => $header, 'separate' => 'none'],
38 'indentation_type' => true,
39 'line_ending' => true,
40 'lowercase_constants' => true,
41 'lowercase_keywords' => true,
42 'method_argument_space' => true,
43 'native_function_invocation' => true,
44 'no_alias_functions' => true,
45 'no_blank_lines_after_class_opening' => true,
46 'no_blank_lines_after_phpdoc' => true,
47 'no_closing_tag' => true,
48 'no_empty_phpdoc' => true,
49 'no_empty_statement' => true,
50 'no_extra_consecutive_blank_lines' => true,
51 'no_leading_namespace_whitespace' => true,
52 'no_singleline_whitespace_before_semicolons' => true,
53 'no_spaces_after_function_name' => true,
54 'no_spaces_inside_parenthesis' => true,
55 'no_trailing_comma_in_list_call' => true,
56 'no_trailing_whitespace' => true,
57 'no_unused_imports' => true,
58 'no_whitespace_in_blank_line' => true,
59 'ordered_imports' => true,
60 'phpdoc_align' => true,
61 'phpdoc_indent' => true,
62 'phpdoc_no_access' => true,
63 'phpdoc_no_empty_return' => true,
64 'phpdoc_no_package' => true,
65 'phpdoc_scalar' => true,
66 'phpdoc_separation' => true,
67 'phpdoc_to_comment' => true,
68 'phpdoc_trim' => true,
69 'phpdoc_types' => true,
70 'phpdoc_var_without_name' => true,
71 'self_accessor' => true,
72 'simplified_null_return' => true,
73 'single_blank_line_at_eof' => true,
74 'single_import_per_statement' => true,
75 'single_line_after_imports' => true,
76 'single_quote' => true,
77 'ternary_operator_spaces' => true,
78 'trim_array_spaces' => true,
79 'visibility_required' => true,
80 ]
81 )
82 ->setFinder(
83 PhpCsFixer\Finder::create()
84 ->files()
85 ->in(__DIR__ . '/src')
86 ->name('*.php')
87 );