kubawerlos/php-cs-fixer-custom-fixers
Adds a curated set of custom fixers for PHP-CS-Fixer to enforce consistent, opinionated code style beyond the built-in rules. Plug in the fixers, combine with your config, and keep large PHP codebases clean and uniform.
NoUselessCommentFixer - fix for anonymous classes (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1105)dump, dd, d as default functions for CommentedOutFunctionFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1101)NoExtraBlankLinesFixer must run before FunctionParameterSeparationFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1097)PhpdocPropertySortedFixer to support [@property-read](https://github.com/property-read) and [@property-write](https://github.com/property-write) (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1088)PhpdocNoIncorrectVarAnnotationFixer - keep string literals (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1096)PhpDocPropertySorterFixer to PhpdocPropertySortedFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1090)PhpDocPropertySorterFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1085)PhpdocTagNoNamedArgumentsFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1087)FunctionParameterSeparationFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1068)PromotedConstructorPropertyFixer - do not promote when there is assignment to variable (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1063)PhpdocVarAnnotationToAssertFixer - do not convert types from phpstan-type, phpstan-import-type, psalm-type and psalm-import-type (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1061)PhpdocTagNoNamedArgumentsFixer - do not add [@no-named-arguments](https://github.com/no-named-arguments) to attribute classes (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1059)PhpdocNoIncorrectVarAnnotationFixer - do not remove PHPDoc when there is an attribute (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1057)PhpdocNoSuperfluousParamFixer - do not remove callable types (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1055)PromotedConstructorPropertyFixer - handle property hooks (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1052)StringableInterfaceFixer - fix for import with alias of not Stringable (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1050)PhpUnitTestCaseIndicator to PhpUnitTestCaseAnalyzer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1047)MultilinePromotedPropertiesFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1043)PromotedConstructorPropertyFixer - do not promote when type of property is not nullable and type of parameter is nullable (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1042)ReadonlyPromotedPropertiesFixer - analyse property usage (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1039)PhpdocTagNoNamedArgumentsFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1032)TypedClassConstantFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1029)ForeachUseValueFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1019)NoUselessWriteVisibilityFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1014)TrimKeyFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1021)ReadonlyPromotedPropertiesFixer - support asymmetric visibility (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/1012)phpdoc_array_typeand, xor and orPhpdocTypeListFixer (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/960)NoImportFromGlobalNamespaceFixer - do not remove import when it is a partial namespace (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/959)PhpdocArrayStyleFixer - fix for classes with _ in name (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/955)
NoImportFromGlobalNamespaceFixer - fix all places when there is a lot of changes (https://github.com/kubawerlos/php-cs-fixer-custom-fixers/pull/954)How can I help you explore Laravel packages today?