Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 38afaa8

Browse files
committed
Remove useless break statements
1 parent 5b347e6 commit 38afaa8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Exceptions/InvalidJSON.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,16 @@ private static function getErrorMessage($error)
1616
switch ($error) {
1717
case JSON_ERROR_DEPTH:
1818
return ' - Maximum stack depth exceeded';
19-
break;
2019
case JSON_ERROR_STATE_MISMATCH:
2120
return ' - Underflow or the modes mismatch';
22-
break;
2321
case JSON_ERROR_CTRL_CHAR:
2422
return ' - Unexpected control character found';
25-
break;
2623
case JSON_ERROR_SYNTAX:
2724
return ' - Syntax error, malformed JSON';
28-
break;
2925
case JSON_ERROR_UTF8:
3026
return ' - Malformed UTF-8 characters, possibly incorrectly encoded';
31-
break;
3227
default:
3328
return ' - Unknown error';
34-
break;
3529
}
3630
}
37-
}
31+
}

0 commit comments

Comments
 (0)