Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- return PhpCsFixer\Config::create()
- ->setRules(array(
- '@PSR2' => true,
- 'array_indentation' => true,
- 'array_syntax' => array('syntax' => 'short'),
- 'combine_consecutive_unsets' => true,
- 'method_separation' => true,
- 'no_multiline_whitespace_before_semicolons' => true,
- 'single_quote' => true,
- 'binary_operator_spaces' => array(
- 'align_double_arrow' => true,
- 'align_equals' => true,
- ),
- 'no_useless_return' => true,
- 'braces' => array(
- 'allow_single_line_closure' => true,
- ),
- 'concat_space' => array('spacing' => 'one'),
- 'declare_equal_normalize' => true,
- 'function_typehint_space' => true,
- 'hash_to_slash_comment' => true,
- 'include' => true,
- 'lowercase_cast' => true,
- 'method_argument_space' => [
- 'ensure_fully_multiline' => true,
- 'on_multiline' => 'ensure_fully_multiline'
- ],
- 'native_function_casing' => true,
- 'no_blank_lines_after_class_opening' => true,
- 'no_blank_lines_after_phpdoc' => true,
- 'no_empty_comment' => true,
- 'no_useless_else' => true,
- 'no_empty_statement' => true,
- 'no_extra_blank_lines' => array(
- 'curly_brace_block',
- 'extra',
- 'square_brace_block',
- 'throw',
- 'use',
- ),
- 'no_multiline_whitespace_around_double_arrow' => true,
- 'no_spaces_around_offset' => true,
- 'no_trailing_comma_in_list_call' => true,
- 'no_unused_imports' => true,
- 'no_whitespace_before_comma_in_array' => true,
- 'no_whitespace_in_blank_line' => true,
- 'object_operator_without_whitespace' => true,
- 'single_blank_line_before_namespace' => true,
- 'ternary_operator_spaces' => true,
- 'trim_array_spaces' => true,
- 'unary_operator_spaces' => true,
- 'whitespace_after_comma_in_array' => true,
- ))
- ->setLineEnding("\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement