|
| 1 | +<?php |
| 2 | + |
| 3 | +$finder = PhpCsFixer\Finder::create() |
| 4 | + ->in(['config', 'src', 'tests']); |
| 5 | + |
| 6 | +return PhpCsFixer\Config::create() |
| 7 | + ->setFinder($finder) |
| 8 | + ->setRules([ |
| 9 | + 'psr0' => false, |
| 10 | + '@PSR2' => true, |
| 11 | + 'blank_line_after_namespace' => true, |
| 12 | + 'braces' => true, |
| 13 | + 'class_definition' => true, |
| 14 | + 'elseif' => true, |
| 15 | + 'function_declaration' => true, |
| 16 | + 'indentation_type' => true, |
| 17 | + 'line_ending' => true, |
| 18 | + 'lowercase_constants' => true, |
| 19 | + 'lowercase_keywords' => true, |
| 20 | + 'method_argument_space' => [ |
| 21 | + 'ensure_fully_multiline' => true,], |
| 22 | + 'no_break_comment' => true, |
| 23 | + 'no_closing_tag' => true, |
| 24 | + 'no_spaces_after_function_name' => true, |
| 25 | + 'no_spaces_inside_parenthesis' => true, |
| 26 | + 'no_trailing_whitespace' => true, |
| 27 | + 'no_trailing_whitespace_in_comment' => true, |
| 28 | + 'single_blank_line_at_eof' => true, |
| 29 | + 'single_class_element_per_statement' => [ |
| 30 | + 'elements' => ['property'], |
| 31 | + ], |
| 32 | + 'single_import_per_statement' => true, |
| 33 | + 'single_line_after_imports' => true, |
| 34 | + 'switch_case_semicolon_to_colon' => true, |
| 35 | + 'switch_case_space' => true, |
| 36 | + 'visibility_required' => true, |
| 37 | + 'encoding' => true, |
| 38 | + 'full_opening_tag' => true, |
| 39 | + ]); |
0 commit comments