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

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

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

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.

4415 of 5394 relevant lines covered (81.85%)

444.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6845.1 (DEPLOY=yes COMPOSER_FLAGS="--prefer-stable --prefer-lowest") 21 Jul 2016 08:55AM UTC 0
77.82
Travis Job 6845.1
2 6845.2 21 Jul 2016 08:56AM UTC 0
85.14
Travis Job 6845.2
3 6845.3 21 Jul 2016 09:02AM UTC 0
85.26
Travis Job 6845.3
4 6845.4 (SYMFONY_VERSION="~2.7") 21 Jul 2016 09:02AM UTC 0
85.5
Travis Job 6845.4
5 6845.5 (SYMFONY_VERSION="~3.0@dev" COMPOSER_FLAGS="--prefer-stable") 21 Jul 2016 09:03AM UTC 0
85.5
Travis Job 6845.5
6 6845.6 21 Jul 2016 09:04AM UTC 0
89.95
Travis Job 6845.6
Source Files on build 6845
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6845
  • 1c253a5c on github
  • Prev Build on 1.11 (#6842)
  • Next Build on 1.11 (#6849)
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