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

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

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

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

Jobs
ID Job ID Ran Files Coverage
8 13726.8 (COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak) 02 Feb 2018 01:09PM UTC 0
79.83
Travis Job 13726.8
Source Files on build 13726
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13726
  • a461ecd6 on github
  • Prev Build on 2.2 (#13624)
  • Next Build on 2.2 (#13731)
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