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

Props jrf.
Fixes #41234.

git-svn-id: https://develop.svn.wordpress.org/trunk@40997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-07-04 09:51:25 +00:00
parent 9b5781fef9
commit 944c7c694c
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class WP_Network {
*/
public function __get( $key ) {
switch ( $key ) {
case 'id';
case 'id':
return (int) $this->id;
case 'blog_id':
return $this->blog_id;

View File

@ -845,7 +845,7 @@ class WP_Date_Query {
return $value[0] . ' AND ' . $value[1];
default;
default:
if ( ! is_numeric( $value ) ) {
return false;
}