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

FriendsOfPHP / PHP-CS-Fixer / 13726 / 8
82%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 02 Feb 2018 01:15PM UTC
Files 283
Run time 9s
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

02 Feb 2018 12:34PM UTC coverage: 79.83% (+0.02%) from 79.806%
COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak

push

travis-ci

keradus
bug #3367 NoUnusedImportsFixer - fix comment handling (SpacePossum, keradus)

This PR was squashed before being merged into the 2.2 branch (closes #3367).

Discussion
----------

NoUnusedImportsFixer - fix comment handling

 `NoUnusedImportsFixer`

- [x]  crashes on comments containing the '/' character.
- [x]  removes comments placed in or around `use` statements
- [x]  removes _used_ imports if comments are placed in or around `use` statements
- [x] removes _used_ `function` and `const` imports (replaces https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3321)

The other added delimiters are not strictly needed now, however it is good practice and more future prove (and saves time checking each time).

So kind [reminder](https://3v4l.org/mB2vq);
> preg_quote($a) !== preg_quote($a, '/')

Commits
-------

ffd64db0 NoUnusedImportsFixer - fix comment handling

7496 of 9390 relevant lines covered (79.83%)

25.74 hits per line

Source Files on job 13726.8 (COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13726
  • Travis Job 13726.8
  • a461ecd6 on github
  • Prev Job for COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak on 2.2 (#13624.8)
  • Next Job for COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak on 2.2 (#13731.8)
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