Skip to content

remove duplicated code snippets#2695

Merged
Haehnchen merged 1 commit intomasterfrom
feature/duplications
Apr 1, 2026
Merged

remove duplicated code snippets#2695
Haehnchen merged 1 commit intomasterfrom
feature/duplications

Conversation

@Haehnchen
Copy link
Copy Markdown
Owner

No description provided.

…nstructor` to simplify and consolidate service parameter and constructor resolution logic.

Refactor and extract reusable methods `getCommandNames` and `collectMissingArgTypes` to simplify configuration and constructor argument handling logic.
Refactor and consolidate shared logic for type providers, translation inspections, and utility methods.
Refactor XML reference providers by extracting `getXmlTextValue` and `buildMethodStringReference` methods to simplify and consolidate shared logic.
Refactor `TwigExtensionParser` by extracting `collectPhpFiles` method to simplify and reuse PHP file collection logic in filter parsing.
Refactor controller line-marker logic by extracting reusable `addControllerLineMarker` method in `RouteHelper` and simplifying XML/YAML provider implementations.
Extract reusable Twig component-tag detection logic into `TwigHtmlCompletionUtil` to simplify inspections.
Extract shared logic into reusable parsing methods for arguments and options, simplifying `CommandToInvokableIntention` and `SymfonyCommandUtil`.
Refactor service suggestion actions to extend `AbstractServiceSuggestIntentionAction` for shared logic consolidation and code simplification.
Refactor quick-fix actions to extend `AbstractGuessTypoQuickFix` for shared logic consolidation and reusability.
Refactor translation completion providers to consolidate shared logic into `getTranslatableMessageProvider`.
Refactor Twig completion providers to consolidate duplicated logic into `IncompleteTagTemplateCompletionProvider`.
Make `isTwigComponentClass` public and reuse it in `PhpAttributeCompletionContributor`.
Extract `getStringInArrayPattern` method to simplify and reuse array string matching logic in Twig patterns.
Refactor actions to extend `AbstractNewPhpClassAction` for better reusability and code simplification.
@Haehnchen Haehnchen force-pushed the feature/duplications branch from 3aaec1f to b5faac6 Compare April 1, 2026 11:32
@Haehnchen Haehnchen merged commit 7c689ca into master Apr 1, 2026
1 check passed
@Haehnchen Haehnchen deleted the feature/duplications branch April 2, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant