Skip to content

[FEATURE] Introduce generic element retrieval helpers#36

Merged
beatrycze-volk merged 1 commit into
slub:masterfrom
beatrycze-volk:parameters2
Jul 6, 2026
Merged

[FEATURE] Introduce generic element retrieval helpers#36
beatrycze-volk merged 1 commit into
slub:masterfrom
beatrycze-volk:parameters2

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Extracts common patterns for fetching single and multiple XML elements into new getElement() and getElements() helper methods in BaseElement.

This reduces code duplication across various element-specific getter methods, enhancing maintainability and extensibility. Redundant private helper methods are removed from BaseNameElement by leveraging these new generic methods.

@beatrycze-volk beatrycze-volk added this to the PHP MODS Reader 1.0.0 milestone Jul 2, 2026
@beatrycze-volk beatrycze-volk self-assigned this Jul 2, 2026
@beatrycze-volk beatrycze-volk added maintenance Routine updates, code refactoring, and general repository upkeep php Pull requests that update PHP code labels Jul 2, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@beatrycze-volk beatrycze-volk changed the title [MAINTENANCE] Introduce generic element retrieval helpers [FEATURE] Introduce generic element retrieval helpers Jul 3, 2026
@beatrycze-volk beatrycze-volk added feature New functionality, enhancements, or user requests for improvements and removed maintenance Routine updates, code refactoring, and general repository upkeep labels Jul 3, 2026
Extracts common patterns for fetching single and multiple XML elements into new `getElement()` and `getElements()` helper methods in `BaseElement`.

This reduces code duplication across various element-specific getter methods, enhancing maintainability and extensibility. Redundant private helper methods are removed from `BaseNameElement` by leveraging these new generic methods.
@beatrycze-volk beatrycze-volk merged commit fb89bbb into slub:master Jul 6, 2026
4 checks passed
@beatrycze-volk beatrycze-volk deleted the parameters2 branch July 6, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality, enhancements, or user requests for improvements php Pull requests that update PHP code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant