Skip to content

Instantly share code, notes, and snippets.

@ajcastro
Last active March 3, 2019 03:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ajcastro/ac43c25dd3c382ec5eb4 to your computer and use it in GitHub Desktop.
Save ajcastro/ac43c25dd3c382ec5eb4 to your computer and use it in GitHub Desktop.
My Phpcs User Settings
{
"phpcs_additional_args": {
"--standard": "PSR2",
"--exclude": "Generic.Files.LineEndings",
"-n": ""
},
// PHP_CodeSniffer settings
"phpcs_command_on_save": false,
"phpcs_executable_path": "/usr/bin/phpcs",
// PHP Mess Detector settings
"phpmd_executable_path": "/usr/local/bin/phpmd",
// phpcbf settings
"phpcbf_executable_path": "/usr/bin/phpcbf",
// PHP-CS-Fixer settings
// "php_cs_fixer_on_save": true,
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
"php_cs_fixer_additional_args": {
"--fixers": "-phpdoc_no_empty_return,-psr0,-new_with_braces,align_double_arrow,align_equals,-phpdoc_separation,-phpdoc_params,ordered_use"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment