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

FriendsOfPHP / PHP-CS-Fixer / 6845 / 5
83%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 21 Jul 2016 09:08AM UTC
Files 141
Run time 6s
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

21 Jul 2016 07:28AM UTC coverage: 85.496% (+0.01%) from 85.485%
SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable"

push

travis-ci

keradus
bug #2079 TernarySpacesFixer - Remove multiple spaces (SpacePossum)

This PR was merged into the 1.11 branch.

Discussion
----------

TernarySpacesFixer - Remove multiple spaces

I'm not sure if this is a bug report or not. I would like cases like the following to be fixed by the fixer as well:
```php
$a = $b    ?   1   :   2;
```

Currently the fixer won't touch these cases and a [test](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/1.11/Symfony/CS/Tests/Fixer/Symfony/TernarySpacesFixerTest.php#L42
) exists to make sure of that.
This PR change the fixer so it will fix the example to:
```php
$a = $b ? 1 : 2;
```

Commits
-------

448e5aa Remove mulitple spaces.

4362 of 5102 relevant lines covered (85.5%)

80.71 hits per line

Source Files on job 6845.5 (SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable")
  • Tree
  • List 0
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6845
  • Travis Job 6845.5
  • 1c253a5c on github
  • Prev Job for SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable" on 1.11 (#6842.5)
  • Next Job for SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable" on 1.11 (#6849.5)
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