• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MyIntervals / emogrifier / 10901645911
96%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2024 10:57AM UTC
Jobs 1
Files 12
Run time 26min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Sep 2024 10:57AM UTC coverage: 97.301% (-0.02%) from 97.318%
10901645911

push

github

web-flow
[CLEANUP] Add DeclarationBlockParser class (#1311)

This is essentially a refactoring to move the `parseCssDeclarationsBlock` method
that was duplicated in both `CssInliner` and `CssToAttributeConverter` to a
separate class.

As well as eliminating duplicate code/functionality, there are other benefits:
- The method can be tested independently, which is duly done;
- The results cache is now shared;
- The functionality is readily available to other classes, e.g. for the solution
  to #1276 (as currently proposed).

PHPStan errors from the original code have been resolved as follows:
- Use `Preg::split` to wrap `preg_split` to handle unexpected errors;
- Check the return value from `preg_match` precisely with `!== 1` instead of
  `!`.

Longer-term, we should be able to use functionality from PHP-CSS-Parser for more
accurate parsing (e.g. strings containing semicolons), whereupon this class can
become a wrapper for that, but currently that functionality is not available in
a standalone class.

28 of 28 new or added lines in 3 files covered. (100.0%)

757 of 778 relevant lines covered (97.3%)

272.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10901645911.1 17 Sep 2024 10:57AM UTC 0
97.3
GitHub Action Run
Source Files on build 10901645911
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10901645911
  • 597eaf20 on github
  • Prev Build on main (#10901566776)
  • Next Build on main (#10927064312)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc