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

fixes, refactoring #564

Merged
merged 12 commits into from
May 17, 2023
Merged

fixes, refactoring #564

merged 12 commits into from
May 17, 2023

Conversation

xHeaven
Copy link
Contributor

@xHeaven xHeaven commented May 16, 2023

This PR contains various fixes, addresses performance issues and does a little bit of refactoring here and there.
Read the commit messages for more information.
Overall functionality stayed the same.

xHeaven added 10 commits May 16, 2023 23:21
The `imap_msgno()` method is strictly typehinted to return `int`, so the `is_numeric()` check makes no sense.
The specified type is already inferred from the source code.
`$msgno` was immediately overwritten 5 lines later.
Since we dropped support for PHP 8.0 and lower, this cast can be safely removed.
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +4.20 🎉

Comparison is base (0eb3eba) 90.89% compared to head (c103ed6) 95.10%.

❗ Current head c103ed6 differs from pull request most recent head 2b043f2. Consider uploading reports for the commit 2b043f2 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #564      +/-   ##
============================================
+ Coverage     90.89%   95.10%   +4.20%     
+ Complexity      368      364       -4     
============================================
  Files            45       45              
  Lines           945      939       -6     
============================================
+ Hits            859      893      +34     
+ Misses           86       46      -40     
Impacted Files Coverage Δ
src/Mailbox.php 97.39% <ø> (+0.81%) ⬆️
src/Message/Headers.php 100.00% <ø> (ø)
src/Message.php 86.60% <100.00%> (-0.12%) ⬇️
src/Message/AbstractMessage.php 100.00% <100.00%> (ø)
src/Message/AbstractPart.php 96.17% <100.00%> (+0.55%) ⬆️
src/MessageIterator.php 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Slamdunk
Copy link
Collaborator

Thank you 💪

@Slamdunk Slamdunk merged commit 7ace12c into ddeboer:master May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants