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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 06 Jun 2017 01:34PM UTC
Files 269
Run time 12s
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

05 Jun 2017 05:01PM UTC coverage: 76.138% (+0.08%) from 76.054%
DEPLOY=yes TASK_TESTS_COVERAGE=1

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

Source Files on job 2887.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2887
  • Travis Job 2887.1
  • dc52c278 on github
  • Prev Job for DEPLOY=yes TASK_TESTS_COVERAGE=1 on 2.2 (#2864.1)
  • Next Job for DEPLOY=yes TASK_TESTS_COVERAGE=1 on 2.2 (#2892.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc