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

Use latest index.json from ivolo/disposable-email-domains instead of manually updating it #10

Merged
merged 2 commits into from
Feb 27, 2019
Merged

Use latest index.json from ivolo/disposable-email-domains instead of manually updating it #10

merged 2 commits into from
Feb 27, 2019

Conversation

k00ni
Copy link
Contributor

@k00ni k00ni commented Feb 25, 2019

I changed the EmailDataProvider.php to directly use the index.json file from the ivolo/disposable-email-domains package. It was added through composer by me and is therefore always available.

With this approach you gain 2 advantages:

  • no need the manually update src/data/disposable-email-providers.php
  • use always latest list of disposable email domains

Tests ran without errors on my local machine.

Hope you will welcome this change :)

it comes with the latest index.json file, no need to update it manually via the script
…kage

removed obsolete src/data/disposable-email-providers.php file
@codecov-io
Copy link

codecov-io commented Feb 25, 2019

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master    #10   +/-   ##
=======================================
  Coverage       100%   100%           
- Complexity       58     59    +1     
=======================================
  Files            17     16    -1     
  Lines           149    151    +2     
=======================================
+ Hits            149    151    +2
Impacted Files Coverage Δ Complexity Δ
src/EmailDataProvider.php 100% <100%> (ø) 5 <0> (+1) ⬆️

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 c9e8a34...80422ae. Read the comment docs.

@daveearley
Copy link
Owner

This approach makes a lot more sense, thanks for the PR!

@daveearley daveearley merged commit 77e760a into daveearley:master Feb 27, 2019
@k00ni
Copy link
Contributor Author

k00ni commented Feb 27, 2019

You welcome =)

@k00ni k00ni deleted the k00ni-feature-use-disposable-email-domains branch February 27, 2019 14:56
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.

3 participants