Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 345-350 (lines=6) @@
342
			return true;
343
		}
344
345
		if ( false !== strpos( $page, 'post.php' ) ) {
346
			$post = get_post( $_GET['post'] );
347
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
348
				return true;
349
			}
350
		}
351
352
		if ( false !== strpos( $page, 'revision.php' ) ) {
353
			$post   = get_post( $_GET['revision'] );
@@ 352-358 (lines=7) @@
349
			}
350
		}
351
352
		if ( false !== strpos( $page, 'revision.php' ) ) {
353
			$post   = get_post( $_GET['revision'] );
354
			$parent = get_post( $post->post_parent );
355
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
356
				return true;
357
			}
358
		}
359
360
		return false;
361
	}