Skip to content

Instantly share code, notes, and snippets.

@appleboy
Last active August 29, 2015 14:11
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 appleboy/e56524116c81beb5f155 to your computer and use it in GitHub Desktop.
Save appleboy/e56524116c81beb5f155 to your computer and use it in GitHub Desktop.
PHP-CS-Fixer settings
{
"php_cs_fixer_on_save": true,
"php_cs_fixer_show_quick_panel": true,
/* windows setting */
"phpcs_php_prefix_path": "C:\\xampp\\php\\php.exe",
"phpcs_commands_to_php_prefix": ["Fixer"],
"phpcs_executable_path": "C:\\xampp\\php\\phpcs.bat",
"php_cs_fixer_executable_path": "C:\\xampp\\php\\php-cs-fixer.phar",
/* Linux setting */
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
"php_cs_fixer_additional_args": {
"--fixers": "encoding, short_tag, braces, elseif, eof_ending, function_call_space, function_declaration, indentation, line_after_namespace, linefeed, lowercase_keywords, method_argument_space, multiple_use, parenthesis, php_closing_tag, single_line_after_imports, trailing_spaces, visibility, concat_without_spaces, double_arrow_multiline_whitespaces, duplicate_semicolon, empty_return, extra_empty_lines, include, join_function, multiline_array_trailing_comma, new_with_braces, no_empty_lines_after_phpdocs, object_operator, operators_spaces, phpdoc_align, phpdoc_indent, remove_leading_slash_use, remove_lines_between_uses, return, single_array_no_trailing_comma, spaces_before_semicolon, spaces_cast, standardize_not_equal, ternary_spaces, unused_use, whitespacy_lines, align_double_arrow, concat_with_spaces, multiline_spaces_before_semicolon, ordered_use, short_array_syntax, strict, strict_param"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment