From f6582bf2f7decb4a2415600c3607b2061da03bc5 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Fri, 4 Nov 2016 09:42:32 -0400 Subject: [PATCH] Fix phpCS complaint --- content-warning-v2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content-warning-v2.php b/content-warning-v2.php index 3499846..cdd2a0a 100644 --- a/content-warning-v2.php +++ b/content-warning-v2.php @@ -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; } }