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