Chris@14: Chris@12: Chris@12: For the full copyright and license information, please view the LICENSE Chris@12: file that was distributed with this source code. Chris@12: EOF; Chris@12: Chris@12: return PhpCsFixer\Config::create() Chris@12: ->setRiskyAllowed(true) Chris@12: ->setRules( Chris@12: [ Chris@14: 'array_syntax' => ['syntax' => 'short'], Chris@12: 'binary_operator_spaces' => [ Chris@12: 'align_double_arrow' => true, Chris@12: 'align_equals' => true Chris@12: ], Chris@12: 'blank_line_after_namespace' => true, Chris@12: 'blank_line_before_return' => true, Chris@12: 'braces' => true, Chris@12: 'cast_spaces' => true, Chris@12: 'concat_space' => ['spacing' => 'one'], Chris@14: 'declare_strict_types' => true, Chris@12: 'elseif' => true, Chris@12: 'encoding' => true, Chris@12: 'full_opening_tag' => true, Chris@12: 'function_declaration' => true, Chris@12: 'header_comment' => ['header' => $header, 'separate' => 'none'], Chris@12: 'indentation_type' => true, Chris@12: 'line_ending' => true, Chris@12: 'lowercase_constants' => true, Chris@12: 'lowercase_keywords' => true, Chris@12: 'method_argument_space' => true, Chris@12: 'native_function_invocation' => true, Chris@12: 'no_alias_functions' => true, Chris@12: 'no_blank_lines_after_class_opening' => true, Chris@12: 'no_blank_lines_after_phpdoc' => true, Chris@12: 'no_closing_tag' => true, Chris@12: 'no_empty_phpdoc' => true, Chris@12: 'no_empty_statement' => true, Chris@12: 'no_extra_consecutive_blank_lines' => true, Chris@12: 'no_leading_namespace_whitespace' => true, Chris@12: 'no_singleline_whitespace_before_semicolons' => true, Chris@12: 'no_spaces_after_function_name' => true, Chris@12: 'no_spaces_inside_parenthesis' => true, Chris@12: 'no_trailing_comma_in_list_call' => true, Chris@12: 'no_trailing_whitespace' => true, Chris@12: 'no_unused_imports' => true, Chris@12: 'no_whitespace_in_blank_line' => true, Chris@12: 'phpdoc_align' => true, Chris@12: 'phpdoc_indent' => true, Chris@12: 'phpdoc_no_access' => true, Chris@12: 'phpdoc_no_empty_return' => true, Chris@12: 'phpdoc_no_package' => true, Chris@12: 'phpdoc_scalar' => true, Chris@12: 'phpdoc_separation' => true, Chris@12: 'phpdoc_to_comment' => true, Chris@12: 'phpdoc_trim' => true, Chris@12: 'phpdoc_types' => true, Chris@12: 'phpdoc_var_without_name' => true, Chris@14: 'pow_to_exponentiation' => true, Chris@12: 'self_accessor' => true, Chris@12: 'simplified_null_return' => true, Chris@12: 'single_blank_line_at_eof' => true, Chris@12: 'single_import_per_statement' => true, Chris@12: 'single_line_after_imports' => true, Chris@12: 'single_quote' => true, Chris@12: 'ternary_operator_spaces' => true, Chris@12: 'trim_array_spaces' => true, Chris@12: 'visibility_required' => true, Chris@12: ] Chris@0: ) Chris@12: ->setFinder( Chris@12: PhpCsFixer\Finder::create() Chris@12: ->files() Chris@12: ->in(__DIR__ . '/src') Chris@12: ->in(__DIR__ . '/tests') Chris@12: ->name('*.php') Chris@12: );