Skip to content

Instantly share code, notes, and snippets.

@danielstgt
Created January 6, 2022 23:41
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 danielstgt/3cd01611dd68bf55754731f4d5c4016f to your computer and use it in GitHub Desktop.
Save danielstgt/3cd01611dd68bf55754731f4d5c4016f to your computer and use it in GitHub Desktop.
PHP CS Fixer Rules
{
"rules": {
"@PSR2": true,
"ordered_imports": {
"sort_algorithm": "length"
},
"array_syntax": {
"syntax": "short"
},
"no_unused_imports": true,
"blank_line_after_opening_tag": true,
"binary_operator_spaces": {
"default": "single_space",
"operators": {
"=>": "align_single_space_minimal"
}
}
},
"on_save": true
}
@danielstgt
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment