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

msohailhussain / php-sdk / 277
98%

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

pending completion
277

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.

1273 of 1310 relevant lines covered (97.18%)

179.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 277.1 27 Jul 2018 12:03PM UTC 0
96.14
Travis Job 277.1
2 277.2 27 Jul 2018 12:04PM UTC 0
96.17
Travis Job 277.2
3 277.3 27 Jul 2018 12:03PM UTC 0
96.08
Travis Job 277.3
4 277.4 27 Jul 2018 12:03PM UTC 0
96.23
Travis Job 277.4
Source Files on build 277
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #277
  • 3280346b on github
  • Prev Build on master (#274)
  • Next Build on master (#282)
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