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

FriendsOfPHP / PHP-CS-Fixer / 19921 / 7
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 28 Jan 2020 09:11AM UTC
Files 401
Run time 22s
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

28 Jan 2020 08:33AM UTC coverage: 81.893% (+0.04%) from 81.854%
19921.7

push

travis-ci

SpacePossum
feature #4590 SwitchContinueToBreakFixer - Introduction (SpacePossum)

This PR was merged into the 2.17-dev branch.

Discussion
----------

SwitchContinueToBreakFixer - Introduction

Description of switch_continue_to_break rule.
Switch case must not be ended with `continue` but with `break`.

```diff
--- Original
+++ New
@@ -1,5 +1,5 @@
<?php
    switch ($foo) {
        case 1:
-           continue;
+           break;
    }
```

```diff
--- Original
+++ New
@@ -1,15 +1,15 @@
<?php
switch ($foo) {
    case 1:
        while($bar) {
            do {
-                continue 3;
+                break 3;
            } while(false);

            if ($foo + 1 > 3) {
                continue;
            }

-            continue 2;
+            break 2;
        }
}
```

@ see https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core.continue-targeting-switch

https://wiki.php.net/rfc/continue_on_switch_deprecation

https://github.com/php/php-src/pull/3364

Commits
-------

80f83b62 SwitchContinueToBreakFixer - Introduction

14079 of 17192 relevant lines covered (81.89%)

33.99 hits per line

Source Files on job 19921.7
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15505
  • Travis Job 19921.7
  • 7b7e2408 on github
  • Prev Job for on master (#19920.7)
  • Next Job for on master (#19922.7)
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