Skip to content

Instantly share code, notes, and snippets.

@fer-ri
Last active November 1, 2016 12:00
Show Gist options
  • Save fer-ri/29126535ea90aba63e15fcb40806c612 to your computer and use it in GitHub Desktop.
Save fer-ri/29126535ea90aba63e15fcb40806c612 to your computer and use it in GitHub Desktop.
Setting that already complied with standard of Laravel and StyleCI. Demo https://github.com/ghprod/laravel-settings
{
// Do you want to run the phpcs checker?
"phpcs_sniffer_run": false,
// Execute the sniffer on file save
"phpcs_command_on_save": false,
"phpcs_executable_path": "/usr/local/bin/phpcs",
// Fix the issues on save
"php_cs_fixer_on_save": true,
// Show the quick panel
"php_cs_fixer_show_quick_panel": true,
// Path to where you have the php-cs-fixer installed
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
// Additional arguments you can specify into the application
"php_cs_fixer_additional_args": {
"--fixers": "line_after_namespace,blankline_after_open_tag,braces,class_definition,concat_without_spaces,declare_equal_normalize,duplicate_semicolon,elseif,encoding,function_declaration,function_typehint_space,hash_to_slash_comment,heredoc_to_nowdoc,include,join_function,lowercase_cast,lowercase_constants,lowercase_keywords,method_argument_space,method_separation,namespace_no_leading_whitespace,native_function_casing,no_blank_lines_after_class_opening,no_empty_lines_after_phpdocs,no_empty_phpdoc,extra_empty_lines,double_arrow_multiline_whitespaces,multiline_spaces_before_semicolon,short_bool_cast,spaces_before_semicolon,function_call_space,no_spaces_inside_ofsset,parenthesis,indentation,list_commas,single_array_no_trailing_comma,trailing_spaces,no_trailing_whitespace_in_comment,unneeded_control_parentheses,method_argument_default_value,unused_use,no_useless_return,array_element_no_space_before_comma,whitespacy_lines,normalize_index_brace,logical_not_operators_with_successor_space,object_operator,operators_spaces,php_closing_tag,phpdoc_indent,phpdoc_inline_tag,phpdoc_no_access,phpdoc_no_package,phpdoc_params,phpdoc_scalar,phpdoc_single_line_var_spacing,phpdoc_short_description,phpdoc_to_comment,phpdoc_trim,phpdoc_type_to_var,phpdoc_types,phpdoc_var_without_name,print_to_echo,psr4,remove_leading_slash_use,return,self_accessor,short_array_syntax,short_tag,short_scalar_cast,empty_return,eof_ending,single_blank_line_before_namespace,single_class_element_per_statement,multiple_use,single_line_after_imports,single_quote,spaces_after_semicolon,spaces_cast,standardize_not_equal,switch_case_semicolon_to_colon,switch_case_space,ternary_spaces,multiline_array_trailing_comma,trim_array_spaces,unalign_equals,unary_operators_spaces,linefeed,visibility,array_element_white_space_after_comma"
},
// Path to where you have the phpcbf installed
"phpcbf_executable_path": "/usr/local/bin/phpcbf"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment