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

msohailhussain / php-sdk / 277 / 2
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 27 Jul 2018 12:06PM UTC
Files 57
Run time 3s
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

13 Jul 2018 12:02AM UTC coverage: 96.167% (+0.06%) from 96.103%
277.2

push

travis-ci

aliabbasrizvi
Add prefix to PSR-4 autoloader (#108)

PSR-4 autoloaders with no prefix can hurt performance, especially in
large projects with many dependencies. When resolving class names to
files, if Composer cannot use a prefix to limit the search paths, it has
to search every autoloader with a blank prefix.

This change adds a prefix to the autoloader, to avoid this problem.

Running `composer diagnose` previously reported this:

~/src/php-sdk % composer diagnose
Checking composer.json: WARNING
Defining autoload.psr-4 with an empty namespace prefix is a bad idea for performance

With this change, `composer diagnose` is happy.

I couldn't add tests for this, because it's not a code change. But, I
did run the test suite to verify that it everything still passes as
expected.

1430 of 1487 relevant lines covered (96.17%)

42.84 hits per line

Source Files on job 277.2
  • Tree
  • List 0
  • Changed 28
  • Source Changed 3
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 244
  • Travis Job 277.2
  • 3280346b on github
  • Prev Job for on master (#274.2)
  • Next Job for on master (#282.4)
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