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

keradus / PHP-CS-Fixer / 1100 / 2
90%
1.11: 82%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 06 Dec 2015 11:25PM UTC
Files 141
Run time 3s
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

06 Dec 2015 10:50PM UTC coverage: 86.432% (+0.2%) from 86.257%
1100.2

push

travis-ci

keradus
feature #1493 Added MethodArgumentDefaultValueFixer (lmanzke)

This PR was submitted for the 1.11 branch but it was merged into the 1.12 branch instead (closes #1493).

Discussion
----------

Added MethodArgumentDefaultValueFixer

Hey guys, glad to be doing my first PR for you :).

My colleague @dereuromark opened an issue for a new fixer suggestion a while ago.
https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1462

Here is the PR implementing it. I took his solution and refactored it, please feel free to have a look.

I tried to make it as readable as possible.

Maybe you have some suggestion on how finding the next occurrence of a Variable OR certain token might be done more conveniently. I thought I could use

```
$tokens->getNextTokenOfKind(T_VARIABLE)
```

here, but it does not work that way ;).

Looking forward to your feedback!

Best regards,

Lucas

Commits
-------

a048e25 Added MethodArgumentDefaultValueFixer

4281 of 4953 relevant lines covered (86.43%)

75.02 hits per line

Source Files on job 1100.2
  • Tree
  • List 0
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1100
  • Travis Job 1100.2
  • ce295f85 on github
  • Prev Job for on 1.12 (#1091.2)
  • Next Job for on 1.12 (#1101.6)
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