Code Duplication    Length = 6-7 lines in 2 locations

modules/class.jetpack-calypsoify.php 2 locations

@@ 211-216 (lines=6) @@
208
			return true;
209
		}
210
211
		if ( false !== strpos( $page, 'post.php' ) ) {
212
			$post = get_post( $_GET['post'] );
213
			if ( isset( $post ) && isset( $post->post_type ) && in_array( $post->post_type, $allowed_gutenberg_post_types ) ) {
214
				return true;
215
			}
216
		}
217
218
		if ( false !== strpos( $page, 'revision.php' ) ) {
219
			$post   = get_post( $_GET['revision'] );
@@ 218-224 (lines=7) @@
215
			}
216
		}
217
218
		if ( false !== strpos( $page, 'revision.php' ) ) {
219
			$post   = get_post( $_GET['revision'] );
220
			$parent = get_post( $post->post_parent );
221
			if ( isset( $parent ) && isset( $parent->post_type ) && in_array( $parent->post_type, $allowed_gutenberg_post_types ) ) {
222
				return true;
223
			}
224
		}
225
226
		return false;
227
	}