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

keradus / PHP-CS-Fixer / 2887
82%
1.11: 82%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 06 Jun 2017 01:34PM 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
2887

push

travis-ci

keradus
bug #2807 NoUselessElseFixer - Fix detection of conditional block (SpacePossum)

This PR was squashed before being merged into the 2.2 branch (closes #2807).

Discussion
----------

NoUselessElseFixer - Fix detection of conditional block

closes https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2802

I've modified the fixer to skip all `if`, `elseif`, `else` cases if these miss the `{}` body, this means we loose a bunch of opportunities. However these are edge cases and hard to fix.
So lets bug fix first and I've someone want to fix those edges as well than that can be done in another PR.

Commits
-------

4050f2a0 NoUselessElseFixer - Fix detection of conditional block

6905 of 9069 relevant lines covered (76.14%)

24.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2887.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1) 06 Jun 2017 01:28PM UTC 0
76.14
Travis Job 2887.1
Source Files on build 2887
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2887
  • dc52c278 on github
  • Prev Build on 2.2 (#2864)
  • Next Build on 2.2 (#2892)
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