Opened 8 years ago
Closed 8 years ago
#41234 closed defect (bug) (fixed)
Fix two blatant code typos
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.9 | Priority: | normal |
| Severity: | normal | Version: | 4.9 |
| Component: | General | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
case and default statements used in a switch control structure should be followed by a : colon.
While working on an issue in the WordPress Coding Standards, I came across two typos which need to be fixed. Both use a ; semi-colon instead of a colon.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Hi @jrf those might be fixed for consistency sake though semicolons are strangely allowed in switch statements: http://php.net/manual/en/control-structures.switch.php