Code Duplication    Length = 6-7 lines in 2 locations

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

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