Code Duplication    Length = 6-7 lines in 2 locations

projects/plugins/jetpack/modules/calypsoify/class-jetpack-calypsoify.php 2 locations

@@ 205-210 (lines=6) @@
202
			return true;
203
		}
204
205
		if ( false !== strpos( $page, 'post.php' ) ) {
206
			$post = get_post( $_GET['post'] );
207
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
208
				return true;
209
			}
210
		}
211
212
		if ( false !== strpos( $page, 'revision.php' ) ) {
213
			$post   = get_post( $_GET['revision'] );
@@ 212-218 (lines=7) @@
209
			}
210
		}
211
212
		if ( false !== strpos( $page, 'revision.php' ) ) {
213
			$post   = get_post( $_GET['revision'] );
214
			$parent = get_post( $post->post_parent );
215
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
216
				return true;
217
			}
218
		}
219
220
		return false;
221
		// phpcs:enable