Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 315-320 (lines=6) @@
312
			return true;
313
		}
314
315
		if ( false !== strpos( $page, 'post.php' ) ) {
316
			$post = get_post( $_GET['post'] );
317
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
318
				return true;
319
			}
320
		}
321
322
		if ( false !== strpos( $page, 'revision.php' ) ) {
323
			$post   = get_post( $_GET['revision'] );
@@ 322-328 (lines=7) @@
319
			}
320
		}
321
322
		if ( false !== strpos( $page, 'revision.php' ) ) {
323
			$post   = get_post( $_GET['revision'] );
324
			$parent = get_post( $post->post_parent );
325
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
326
				return true;
327
			}
328
		}
329
330
		return false;
331
	}