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

pataar / browser-detect / 23337181878
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: 6.x
DEFAULT BRANCH: main
Ran 20 Mar 2026 09:39AM UTC
Jobs 1
Files 18
Run time 1min
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

20 Mar 2026 09:39AM UTC coverage: 100.0%. Remained the same
23337181878

push

github

web-flow
fix: bugs, code quality, and efficiency improvements (#5)

* fix: bugs, code quality, and efficiency improvements

Bug fixes:
- Fix isTable typo (should be isTablet) in Prerender bot checks
- Fix bots incorrectly marked as isDesktop=true
- Use consistent case-insensitive stripos for Prerender detection
- Merge overlapping Prerender desktop/mobile bot checks
- Fix wrong comment labeling WeChat check as Twitter
- Fix copy-paste PHPDoc for isFirefox, isOpera, isSafari in ResultInterface

Code quality:
- Extract buildVersionAndName() helper to DRY up browser/platform version assembly
- Use local variables for repeated getValue/getAgent calls in BrowserDetect stage
- Collapse three identical Blade::if registrations into a loop
- Simplify Payload::getValue to use null coalescing operator

Efficiency:
- Replace crc32 with xxh128 for cache keys (collision-safe)
- Reuse CrawlerDetect library instance across invocations
- Reuse MobileDetect library instance across invocations
- Call skipBotDetection(true) once at DeviceDetector construction

* revert: remove bot-is-not-desktop change to avoid breaking change

52 of 52 new or added lines in 7 files covered. (100.0%)

285 of 285 relevant lines covered (100.0%)

27.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23337181878.1 20 Mar 2026 09:39AM UTC 18
100.0
GitHub Action Run
Source Files on build 23337181878
  • Tree
  • List 18
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d8ced3c2 on github
  • Prev Build on stable (#23336739063)
  • Next Build on stable (#23337582053)
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