laravel format preset
Laravel Pint’s default formatting style.
[format]
preset = "laravel"
Ecosystem and target-version gates still apply. Planned rules do not run.
Enabled rules (115)
| Rule | Configuration | Status |
|---|---|---|
format/arrays/indentation |
true |
Ported |
format/arrays/index-brace |
true |
Ported |
format/arrays/list-syntax |
true |
Ported |
format/arrays/no-multiline-double-arrow |
true |
Ported |
format/arrays/no-space-around-offset |
{ "positions" = ["inside", "outside"] } |
Ported |
format/arrays/no-space-before-comma |
true |
Ported |
format/arrays/no-trailing-comma-single-line |
true |
Ported |
format/arrays/space-after-comma |
true |
Ported |
format/arrays/syntax |
{ "syntax" = "short" } |
Ported |
format/arrays/trailing-comma-multiline |
{ "elements" = ["arrays"] } |
Ported |
format/arrays/trim-spaces |
true |
Ported |
format/casing/constants |
{ "case" = "lower" } |
Ported |
format/casing/integer-literals |
true |
Ported |
format/casing/keywords |
true |
Ported |
format/casing/magic-constants |
true |
Ported |
format/casing/magic-methods |
true |
Ported |
format/casing/native-functions |
true |
Ported |
format/casing/native-types |
true |
Ported |
format/casing/static-reference |
true |
Ported |
format/casts/lowercase |
true |
Ported |
format/casts/no-short-bool |
true |
Ported |
format/casts/no-unset |
true |
Ported |
format/casts/short-scalar |
true |
Ported |
format/casts/spacing |
true |
Ported |
format/classes/definition |
{ "multi-line-extends-each-single-line" = true, "single-item-single-line" = true, "single-line" = true } |
Ported |
format/classes/member-separation |
{ "elements" = { "const" = "one", "method" = "one", "property" = "one", "trait-import" = "none" } } |
Ported |
format/classes/modifier-keywords |
{ "elements" = ["method", "property"] } |
Ported |
format/classes/no-blank-line-after-opening |
true |
Ported |
format/classes/ordered-interfaces |
true |
Ported |
format/classes/single-member-per-statement |
{ "elements" = ["const", "property"] } |
Ported |
format/comments/no-trailing-whitespace |
true |
Ported |
format/comments/single-line-spacing |
true |
Ported |
format/comments/single-line-style |
{ "comment-types" = ["hash"] } |
Ported |
format/control-flow/braces |
true |
Ported |
format/control-flow/continuation-position |
{ "position" = "same-line" } |
Ported |
format/control-flow/elseif |
true |
Ported |
format/control-flow/include |
true |
Ported |
format/control-flow/no-alternative-syntax |
true |
Ported |
format/control-flow/no-unneeded-braces |
true |
Ported |
format/control-flow/no-unneeded-parentheses |
{ "statements" = ["break", "clone", "continue", "echo-print", "return", "switch-case", "yield"] } |
Ported |
format/control-flow/switch-case-colon |
true |
Ported |
format/control-flow/switch-case-space |
true |
Ported |
format/control-flow/yoda |
{ "always-move-variable" = false, "equal" = false, "identical" = false, "less-and-greater" = false } |
Ported |
format/functions/argument-spacing |
{ "on-multiline" = "ignore" } |
Ported |
format/functions/chain-indentation |
true |
Ported |
format/functions/declaration |
true |
Ported |
format/functions/no-alias-construct-call |
true |
Ported |
format/functions/no-space-after-name |
true |
Ported |
format/functions/return-type-spacing |
{ "space-before" = "none" } |
Ported |
format/imports/blank-line-after |
true |
Ported |
format/imports/blank-line-after-namespace |
true |
Ported |
format/imports/blank-line-between-groups |
true |
Ported |
format/imports/blank-lines-before-namespace |
true |
Ported |
format/imports/clean-namespace |
true |
Ported |
format/imports/fully-qualified-strict-types |
{ "import-symbols" = true, "phpdoc-tags" = ["param", "phpstan-param", "phpstan-property", "phpstan-property-read", "phpstan-property-write", "phpstan-return", "phpstan-var", "property", "property-read", "property-write", "psalm-param", "psalm-property", "psalm-property-read", "psalm-property-write", "psalm-return", "psalm-var", "return", "see", "throws", "var", "extends", "implements", "use", "phpstan-extends", "phpstan-implements", "phpstan-use", "psalm-extends", "psalm-implements", "psalm-use", "mixin", "param-out", "param-closure-this", "phpstan-param-out", "phpstan-assert", "phpstan-assert-if-true", "phpstan-assert-if-false", "phpstan-self-out", "phpstan-this-out", "phpstan-require-extends", "phpstan-require-implements"] } |
Ported |
format/imports/no-leading-namespace-whitespace |
true |
Ported |
format/imports/no-leading-slash |
true |
Ported |
format/imports/no-unneeded-alias |
true |
Ported |
format/imports/ordered |
{ "order" = ["const", "class", "function"], "sort" = "alphabetical" } |
Ported |
format/imports/single-per-statement |
true |
Ported |
format/operators/binary-spacing |
{ "default" = "single-space" } |
Ported |
format/operators/concat-spacing |
{ "spacing" = "none" } |
Ported |
format/operators/increment-style |
{ "style" = "post" } |
Ported |
format/operators/new-parentheses |
{ "anonymous-class" = false, "named-class" = false } |
Ported |
format/operators/no-space-around-arrow |
true |
Ported |
format/operators/no-space-around-double-colon |
true |
Ported |
format/operators/not-with-successor-space |
true |
Ported |
format/operators/standardize-not-equals |
true |
Ported |
format/operators/ternary-spacing |
true |
Ported |
format/operators/unary-spacing |
true |
Ported |
format/phpdoc/align |
{ "align" = "left", "spacing" = { "param" = 2 } } |
Ported |
format/phpdoc/indent |
true |
Ported |
format/phpdoc/inline-tag |
true |
Ported |
format/phpdoc/no-blank-line-after |
true |
Ported |
format/phpdoc/no-empty |
true |
Ported |
format/phpdoc/order |
{ "order" = ["param", "return", "throws"] } |
Ported |
format/phpdoc/scalar |
true |
Ported |
format/phpdoc/separation |
{ "groups" = [["deprecated", "link", "see", "since"], ["author", "copyright", "license"], ["category", "package", "subpackage"], ["property", "property-read", "property-write"], ["param", "return"]] } |
Ported |
format/phpdoc/single-line-var-spacing |
true |
Ported |
format/phpdoc/tag-type |
{ "tags" = { "inheritdoc" = "inline" } } |
Ported |
format/phpdoc/trim |
true |
Ported |
format/phpdoc/types |
true |
Ported |
format/phpdoc/var-without-name |
true |
Ported |
format/statements/blank-line-before |
{ "statements" = ["continue", "return"] } |
Ported |
format/statements/braces-position |
{ "allow-single-line-anonymous-functions" = false, "allow-single-line-empty-anonymous-classes" = false, "anonymous-classes-opening-brace" = "next-line-unless-newline-at-signature-end", "anonymous-functions-opening-brace" = "same-line", "classes-opening-brace" = "next-line-unless-newline-at-signature-end", "control-structures-opening-brace" = "same-line", "functions-opening-brace" = "next-line-unless-newline-at-signature-end" } |
Ported |
format/statements/declare-equal |
true |
Ported |
format/statements/declare-parentheses |
true |
Ported |
format/statements/multiline-semicolon |
{ "strategy" = "no-multi-line" } |
Ported |
format/statements/no-mixed-echo-print |
{ "use" = "echo" } |
Ported |
format/statements/no-space-before-semicolon |
true |
Ported |
format/statements/one-per-line |
true |
Ported |
format/statements/single-line-empty-body |
true |
Ported |
format/statements/space-after-semicolon |
true |
Ported |
format/statements/space-around-construct |
true |
Ported |
format/strings/heredoc-to-nowdoc |
true |
Ported |
format/strings/no-binary |
true |
Ported |
format/strings/single-quote |
true |
Ported |
format/tags/blank-line-after-opening |
true |
Ported |
format/tags/full-opening |
true |
Ported |
format/tags/linebreak-after-opening |
true |
Ported |
format/tags/no-closing |
true |
Ported |
format/types/compact-nullable |
true |
Ported |
format/types/declaration-spacing |
true |
Ported |
format/types/nullable-for-null-default |
true |
Ported |
format/types/nullable-syntax |
true |
Ported |
format/types/union-spacing |
true |
Ported |
format/whitespace/encoding |
true |
Ported |
format/whitespace/final-newline |
true |
Ported |
format/whitespace/indentation-type |
true |
Ported |
format/whitespace/inside-parentheses |
true |
Ported |
format/whitespace/line-ending |
true |
Ported |
format/whitespace/no-blank-line-whitespace |
true |
Ported |
format/whitespace/no-extra-blank-lines |
{ "tokens" = ["extra", "throw", "use"] } |
Ported |
format/whitespace/no-trailing |
true |
Ported |
format/whitespace/statement-indentation |
true |
Ported |
Rules left off (49)
format/arrays/no-space-in-emptyformat/attributes/empty-parenthesesformat/attributes/no-block-spacesformat/attributes/orderedformat/casing/class-referenceformat/classes/multiline-promoted-propertiesformat/classes/single-trait-per-statementformat/comments/align-multilineformat/comments/headerformat/comments/multiline-delimitersformat/comments/no-emptyformat/control-flow/empty-loop-bodyformat/control-flow/empty-loop-conditionformat/control-flow/no-break-commentformat/functions/backtick-to-shell-execformat/functions/single-line-throwformat/imports/global-namespaceformat/imports/groupformat/laravel/bladeformat/operators/linebreakformat/operators/new-expression-parenthesesformat/operators/no-useless-concatformat/operators/not-with-spaceformat/operators/standardize-incrementformat/phpdoc/annotation-without-dotformat/phpdoc/line-spanformat/phpdoc/no-alias-tagformat/phpdoc/no-duplicate-typesformat/phpdoc/order-by-valueformat/phpdoc/param-orderformat/phpdoc/return-self-referenceformat/phpdoc/summaryformat/phpdoc/tag-casingformat/phpdoc/trim-blank-linesformat/phpdoc/types-orderformat/phpdoc/var-orderformat/phpunit/fqcn-annotationformat/statements/explicit-indirect-variableformat/statements/numeric-literal-separatorformat/statements/octal-notationformat/statements/semicolon-after-instructionformat/strings/complex-variableformat/strings/explicit-variableformat/strings/heredoc-closing-markerformat/strings/heredoc-indentationformat/strings/implicit-backslashesformat/strings/multiline-to-heredocformat/tags/echo-syntaxformat/types/ordered