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

FriendsOfPHP / PHP-CS-Fixer / 9549
91%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 30 Mar 2017 04:11PM UTC
Jobs 1
Files 250
Run time 16s
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
9549

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

3 of 3 new or added lines in 1 file covered. (100.0%)

7435 of 8115 relevant lines covered (91.62%)

279.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/ToolInfo.php

Uncovered Existing Lines

Lines Coverage ∆ File
5
100.0
src/ToolInfo.php
Jobs
ID Job ID Ran Files Coverage
1 9549.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1) 30 Mar 2017 04:07PM UTC 0
91.62
Travis Job 9549.1
Source Files on build 9549
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9549
  • a8f70fee on github
  • Prev Build on 2.1 (#9547)
  • Next Build on 2.1 (#9553)
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