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

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

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

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

4604 of 5243 relevant lines covered (87.81%)

357.68 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1100.2 06 Dec 2015 11:21PM UTC 0
86.43
Travis Job 1100.2
3 1100.3 06 Dec 2015 11:21PM UTC 0
86.59
Travis Job 1100.3
4 1100.4 (SYMFONY_VERSION="~2.7") 06 Dec 2015 11:21PM UTC 0
86.8
Travis Job 1100.4
5 1100.5 (SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable") 06 Dec 2015 11:21PM UTC 0
86.8
Travis Job 1100.5
6 1100.6 06 Dec 2015 11:25PM UTC 0
90.41
Travis Job 1100.6
7 1100.7 06 Dec 2015 11:25PM UTC 0
79.26
Travis Job 1100.7
Source Files on build 1100
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1100
  • ce295f85 on github
  • Prev Build on 1.12 (#1091)
  • Next Build on 1.12 (#1101)
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