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

FriendsOfPHP / PHP-CS-Fixer / 19921
93%

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

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

Jobs
ID Job ID Ran Files Coverage
7 19921.7 28 Jan 2020 09:09AM UTC 0
81.89
Travis Job 19921.7
Source Files on build 19921
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #19921
  • 7b7e2408 on github
  • Prev Build on master (#19920)
  • Next Build on master (#19922)
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