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:
parent
9b5781fef9
commit
944c7c694c
@ -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;
|
||||
|
@ -845,7 +845,7 @@ class WP_Date_Query {
|
||||
|
||||
return $value[0] . ' AND ' . $value[1];
|
||||
|
||||
default;
|
||||
default:
|
||||
if ( ! is_numeric( $value ) ) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user