Code Duplication    Length = 6-7 lines in 2 locations

modules/class.jetpack-calypsoify.php 2 locations

@@ 245-250 (lines=6) @@
242
			return true;
243
		}
244
245
		if ( false !== strpos( $page, 'post.php' ) ) {
246
			$post = get_post( $_GET['post'] );
247
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
248
				return true;
249
			}
250
		}
251
252
		if ( false !== strpos( $page, 'revision.php' ) ) {
253
			$post   = get_post( $_GET['revision'] );
@@ 252-258 (lines=7) @@
249
			}
250
		}
251
252
		if ( false !== strpos( $page, 'revision.php' ) ) {
253
			$post   = get_post( $_GET['revision'] );
254
			$parent = get_post( $post->post_parent );
255
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
256
				return true;
257
			}
258
		}
259
260
		return false;
261
	}