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

keradus / PHP-CS-Fixer / 2599
92%
1.11: 82%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 30 Mar 2017 04:19PM UTC
Jobs 1
Files 250
Run time 13s
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
2599

push

travis-ci

keradus
bug #2637 ToolInfo - use static dir check for composer discovery (Slamdunk)

This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #2637).

Discussion
----------

ToolInfo - use static dir check for composer discovery

In a Composer installation `php-cs-fixer` binary is present in
* `vendor/friendsofphp/php-cs-fixer/php-cs-fixer`
* `vendor/bin/php-cs-fixer` (symlink)

but someone may want to re-symlink the symlink in a custom/private bin dir.
If so, the script currently fails to detect whether is installed through composer or not.

This is due to the `$_SERVER['SCRIPT_NAME']` variable, that could vary a lot.
But composer installations can have only 2 result path, so just check them statically.

Commits
-------

63e0dda ToolInfo: use static dir check for composer discovery

7435 of 8115 relevant lines covered (91.62%)

279.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2599.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1) 30 Mar 2017 04:15PM UTC 0
91.62
Travis Job 2599.1
Source Files on build 2599
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2599
  • a8f70fee on github
  • Prev Build on 2.1 (#2594)
  • Next Build on 2.1 (#2602)
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