Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 354-359 (lines=6) @@
351
			return true;
352
		}
353
354
		if ( false !== strpos( $page, 'post.php' ) ) {
355
			$post = get_post( $_GET['post'] );
356
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
357
				return true;
358
			}
359
		}
360
361
		if ( false !== strpos( $page, 'revision.php' ) ) {
362
			$post   = get_post( $_GET['revision'] );
@@ 361-367 (lines=7) @@
358
			}
359
		}
360
361
		if ( false !== strpos( $page, 'revision.php' ) ) {
362
			$post   = get_post( $_GET['revision'] );
363
			$parent = get_post( $post->post_parent );
364
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
365
				return true;
366
			}
367
		}
368
369
		return false;
370
	}