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

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

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

30 Mar 2017 03:57PM UTC coverage: 91.62% (-0.04%) from 91.656%
DEPLOY=yes TASK_TESTS_COVERAGE=1

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

Source Files on job 2599.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1)
  • Tree
  • List 0
  • Changed 64
  • Source Changed 2
  • Coverage Changed 64
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2599
  • Travis Job 2599.1
  • a8f70fee on github
  • Prev Job for DEPLOY=yes TASK_TESTS_COVERAGE=1 on 2.1 (#2594.1)
  • Next Job for DEPLOY=yes TASK_TESTS_COVERAGE=1 on 2.1 (#2602.1)
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