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