WordPress.org

Make WordPress Core

Changeset 40997


Ignore:
Timestamp:
07/04/2017 09:51:25 AM (3 years ago)
Author:
SergeyBiryukov
Message:

General: Always use colon instead of a semicolon in switch() control structures.

Props jrf.
Fixes #41234.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-network.php

    r40102 r40997  
    155155    public function __get( $key ) {
    156156        switch ( $key ) {
    157             case 'id';
     157            case 'id':
    158158                return (int) $this->id;
    159159            case 'blog_id':
  • trunk/src/wp-includes/date.php

    r39672 r40997  
    846846                return $value[0] . ' AND ' . $value[1];
    847847
    848             default;
     848            default:
    849849                if ( ! is_numeric( $value ) ) {
    850850                    return false;
Note: See TracChangeset for help on using the changeset viewer.