Skip to content

Improved error handling & format override #116

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

baseciq
Copy link
Contributor

@baseciq baseciq commented Jul 14, 2025

  • throws Exception if unable to detect extension (for example, the file comes from a php upload or is stored in the file system under an unrelated name)
  • Ebook::read allows you to specify the extension of the file being parsed as the second parameter, which will force the format to be selected by the user.

baseciq added 2 commits July 14, 2025 11:49
…override extension-based format detection, which is usefull while dealing with file uploads
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 90.04%. Comparing base (e5d45ae) to head (89d901c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Ebook.php 71.42% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #116      +/-   ##
============================================
- Coverage     90.07%   90.04%   -0.04%     
- Complexity      843      844       +1     
============================================
  Files            32       32              
  Lines          2589     2591       +2     
============================================
+ Hits           2332     2333       +1     
- Misses          257      258       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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