Use phpfmt to format .php files

This commit is contained in:
Bernd Bestel 2020-08-30 22:52:35 +02:00
parent 2f00d673a7
commit 5c101e6750
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

34
.vscode/settings.json vendored
View File

@ -9,5 +9,37 @@
"javascript.preferences.quoteStyle": "double", "javascript.preferences.quoteStyle": "double",
"blade.format.enable": true, "blade.format.enable": true,
"html.format.wrapAttributes": "force", "html.format.wrapAttributes": "force",
"html.format.wrapLineLength": 0 "html.format.wrapLineLength": 0,
"phpfmt.passes": [
"AddMissingParentheses",
"AliasToMaster",
"AllmanStyleBraces",
"AutoSemicolon",
"ClassToSelf",
"ConvertOpenTagWithEcho",
"DoubleToSingleQuote",
"OrderAndRemoveUseClauses",
"OrganizeClass",
"ReindentSwitchBlocks",
"RemoveIncludeParentheses",
"RemoveSemicolonAfterCurly",
"RemoveUseLeadingSlash",
"ReplaceBooleanAndOr",
"ShortArray",
"SmartLnAfterCurlyOpen",
"SpaceAroundControlStructures",
"SpaceBetweenMethods",
"StripExtraCommaInArray",
"StripNewlineAfterClassOpen",
"StripNewlineAfterCurlyOpen",
"UpgradeToPreg",
"WrongConstructorName"
],
"phpfmt.exclude": [
"ReindentComments",
"StripNewlineWithinClassBody"
],
"phpfmt.psr2": false,
"phpfmt.detect_indent": true,
"phpfmt.smart_linebreak_after_curly": true
} }