Fix phpCS complaint

This commit is contained in:
Jay Wood
2016-11-04 09:42:32 -04:00
parent 46155009ca
commit f6582bf2f7

View File

@ -135,7 +135,7 @@ class ContentWarning_v2 {
if ( $cat_gated ) {
// Return the category cookie name like _cat_###
return '_cat_' . $cat_gated;
} else if ( $this->is_gated( $post->post_parent ) ) {
} elseif ( $this->is_gated( $post->post_parent ) ) {
return $post->post_parent;
}
}
@ -145,7 +145,7 @@ class ContentWarning_v2 {
if ( $cat_gated ) {
// Return the category cookie name like _cat_###
return '_cat_' . $cat_gated;
} else if ( $this->is_gated( $post->ID ) ) {
} elseif ( $this->is_gated( $post->ID ) ) {
return $post->ID;
}
}