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

FriendsOfPHP / PHP-CS-Fixer / 20020
93%

Build:
DEFAULT BRANCH: master
Ran 05 Feb 2020 11:40PM UTC
Jobs 1
Files 405
Run time 59s
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
20020

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

Jobs
ID Job ID Ran Files Coverage
7 20020.7 05 Feb 2020 11:39PM UTC 0
81.83
Travis Job 20020.7
Source Files on build 20020
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #20020
  • 6d89ed97 on github
  • Prev Build on master (#20015)
  • Next Build on master (#20034)
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