Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break down complex model factory helper method #1396

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

caendesilva
Copy link
Member

This method is quite complex due to it's many conditionals. Extracting helpers with describing names makes the code easier to read, maintain, and understand.

This method is quite complex due to it's many conditionals. Extracting helpers with describing names makes the code easier to read, maintain, and understand.
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #1396 (62269dd) into master (b563dc6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             master    #1396     +/-   ##
===========================================
  Coverage     99.97%   99.97%             
- Complexity     1701     3406   +1705     
===========================================
  Files           180      360    +180     
  Lines          4609     9230   +4621     
===========================================
+ Hits           4608     9228   +4620     
- Misses            1        2      +1     
Files Coverage Δ
.../src/Framework/Factories/NavigationDataFactory.php 100.00% <100.00%> (ø)

... and 180 files with indirect coverage changes

@caendesilva caendesilva merged commit 528cd86 into master Oct 27, 2023
15 checks passed
@caendesilva caendesilva changed the title Break down complex helper method Break down complex model factory helper method Oct 27, 2023
@caendesilva caendesilva deleted the navigation-data-factory-cleanup branch November 6, 2023 11:52
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