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

Sort numerical keys in mergeSeeds #182

Merged
merged 2 commits into from
Apr 28, 2020
Merged

Sort numerical keys in mergeSeeds #182

merged 2 commits into from
Apr 28, 2020

Conversation

mvorisek
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #182 into develop will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #182      +/-   ##
=============================================
+ Coverage      96.94%   96.97%   +0.02%     
- Complexity       443      444       +1     
=============================================
  Files             24       24              
  Lines           1047     1057      +10     
=============================================
+ Hits            1015     1025      +10     
  Misses            32       32              
Impacted Files Coverage Δ Complexity Δ
src/FactoryTrait.php 100.00% <100.00%> (ø) 43.00 <0.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47ec4d2...5fb3fbe. Read the comment docs.

Copy link
Member

@DarkSide666 DarkSide666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Complex and I don't see reason for that.

I think I fixed it here https://github.com/atk4/core/pull/182/files#diff-0465835788d64e7f6e72e370ba840cfaR156.
Maybe here we should simply have ksort($arguments, SORT_NUMERIC) before this array_shift line ?

@DarkSide666 DarkSide666 self-requested a review April 28, 2020 23:11
@mvorisek mvorisek marked this pull request as ready for review April 28, 2020 23:13
src/FactoryTrait.php Outdated Show resolved Hide resolved
src/FactoryTrait.php Show resolved Hide resolved
@mvorisek mvorisek merged commit ef69e82 into develop Apr 28, 2020
@mvorisek mvorisek deleted the sort_seeds branch April 28, 2020 23:21
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.

2 participants