Code Duplication    Length = 6-7 lines in 2 locations

modules/class.jetpack-calypsoify.php 2 locations

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