rector/coding-style set
Rector’s coding-style set: the Pun lint rules its Rector rules map to, and nothing else.
[lint]
sets = ["rector/coding-style"]
A rule merged from several Rector rules runs only the rewrites of this set’s Rector rules, unless a preset also turns it on. Rector rules that are format rules in Pun run under [format] instead. Laravel, Pest, and PHPUnit rules also need their extension.
Rules (14)
| Rule | Rector rules | Status |
|---|---|---|
lint/functions/no-call-user-func-method |
CallUserFuncToMethodCallRector |
Ported |
lint/functions/require-strict-array-search |
StrictArraySearchRector |
Ported |
lint/functions/require-strict-in-array |
StrictInArrayRector |
Ported |
lint/refactor/replace-function-with-constant |
FuncCallToConstFetchRector |
Ported |
lint/style/no-escaped-quotes |
SimplifyQuoteEscapeRector |
Ported |
lint/style/no-multi-assign |
SplitDoubleAssignRector |
Ported |
lint/style/prefer-catch-name-from-type |
CatchExceptionNameMatchingTypeRector |
Ported |
lint/style/prefer-class-constant |
StringClassNameToClassConstantRector, UseClassKeywordForClassNameResolutionRector |
Ported |
lint/style/prefer-php-version-id |
VersionCompareFuncCallToConstantRector |
Ported |
lint/style/prefer-spread |
CallUserFuncArrayToVariadicRector |
Ported |
lint/style/prefer-variadic-param |
FuncGetArgsToVariadicParamRector |
Ported |
lint/style/require-assign-set-padding |
NewlineBeforeNewAssignSetRector |
Ported |
lint/style/require-parent-visibility |
MakeInheritedMethodVisibilitySameAsParentRector |
Ported |
lint/style/require-statement-padding |
NewlineAfterStatementRector |
Ported |