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

FriendsOfPHP / PHP-CS-Fixer / 20006 / 7
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 03 Feb 2020 11:39PM UTC
Files 405
Run time 41s
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

03 Feb 2020 07:16PM UTC coverage: 81.827%. Remained the same
20006.7

cron

travis-ci

SpacePossum
feature #4704 LambdaNotUsedImportFixer - introduction (SpacePossum)

This PR was merged into the 2.17-dev branch.

Discussion
----------

LambdaNotUsedImportFixer - introduction

closes https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4652

```
$ php php-cs-fixer describe lambda_not_used_import
Description of lambda_not_used_import rule.
Lambda must not import variables it doesn't use.

Fixing examples:
 * Example #1.
```

```diff
--- Original
+++ New
@@ -1,2 +1,2 @@
 <?php
-$foo = function() use ($bar) {};
+$foo = function() {};
```

Found some valid cases on SF, happy to make adjustments based on reviews :)

Commits
-------

6d4064fb LambdaNotUsedImportFixer - introduction

14377 of 17570 relevant lines covered (81.83%)

33.81 hits per line

Source Files on job 20006.7
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15567
  • Travis Job 20006.7
  • 6d89ed97 on github
  • Prev Job for on master (#20004.7)
  • Next Job for on master (#20015.7)
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