Skip to content

Instantly share code, notes, and snippets.

@forceedge01
Created April 16, 2017 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forceedge01/d97e197390844773a4e667373a32c436 to your computer and use it in GitHub Desktop.
Save forceedge01/d97e197390844773a4e667373a32c436 to your computer and use it in GitHub Desktop.
Sublime phpcs fixer config
"php_cs_fixer_additional_args": {
"--rules": "@PSR2,no_unused_imports,no_useless_else,no_useless_return,no_trailing_whitespace,blank_line_before_return,blank_line_after_namespace,blank_line_after_opening_tag,cast_spaces,combine_consecutive_unsets,hash_to_slash_comment,is_null,linebreak_after_opening_tag,method_separation,native_function_casing,new_with_braces,no_blank_lines_after_class_opening,no_blank_lines_after_phpdoc,no_empty_comment,no_empty_phpdoc,no_empty_statement,no_extra_consecutive_blank_lines,no_leading_import_slash,no_leading_namespace_whitespace,no_mixed_echo_print,no_multiline_whitespace_around_double_arrow,no_multiline_whitespace_before_semicolons,no_short_bool_cast,no_singleline_whitespace_before_semicolons,no_unneeded_control_parentheses,no_unreachable_default_argument_value,no_whitespace_before_comma_in_array,no_whitespace_in_blank_line,non_printable_character,not_operator_with_successor_space,ordered_imports,php_unit_construct,php_unit_dedicate_assert,phpdoc_add_missing_param_annotation,phpdoc_no_useless_inheritdoc,phpdoc_order,phpdoc_return_self_reference,phpdoc_separation,phpdoc_summary,phpdoc_types,phpdoc_var_without_name,psr4,single_blank_line_before_namespace,single_quote",
"--allow-risky": "yes"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment