Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 511-516 (lines=6) @@
508
			return true;
509
		}
510
511
		if ( false !== strpos( $page, 'post.php' ) ) {
512
			$post = get_post( $_GET['post'] );
513
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
514
				return true;
515
			}
516
		}
517
518
		if ( false !== strpos( $page, 'revision.php' ) ) {
519
			$post   = get_post( $_GET['revision'] );
@@ 518-524 (lines=7) @@
515
			}
516
		}
517
518
		if ( false !== strpos( $page, 'revision.php' ) ) {
519
			$post   = get_post( $_GET['revision'] );
520
			$parent = get_post( $post->post_parent );
521
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
522
				return true;
523
			}
524
		}
525
526
		return false;
527
	}