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

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

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 21 Apr 2017 06:00AM UTC
Jobs 1
Files 269
Run time 13s
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
9819

push

travis-ci

keradus
bug #2711 FixCommand - fix diff optional value handling (keradus)

This PR was merged into the 2.2 branch.

Discussion
----------

FixCommand - fix diff optional value handling

regression fix for #2554:
```php
new InputOption('diff', '', InputOption::VALUE_OPTIONAL, 'Also produce diff for each file.', 'sbd'),
```
that means:
- 'diff' option may or may not be passed
- when it's passed, value for it is optional
- 'sbd' is default value of `diff` option regardless it is passed or not (!!!)

I guess assumption during creating 2254 was that `sbd` would be only a value for `diff` if one would pass `--diff` (without value). Apparently, it is a value even if one would not pass that option at all, leading to generate diff even without using `--diff` option.

ref https://github.com/symfony/symfony/issues/11572

Commits
-------

5546893d FixCommand - fix diff optional value handling

1 of 1 new or added line in 1 file covered. (100.0%)

7651 of 8827 relevant lines covered (86.68%)

22.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9819.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1) 21 Apr 2017 05:56AM UTC 0
86.68
Travis Job 9819.1
Source Files on build 9819
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9819
  • 6820d96f on github
  • Prev Build on 2.2 (#9812)
  • Next Build on 2.2 (#9828)
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