Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 203-208 (lines=6) @@
200
			return true;
201
		}
202
203
		if ( false !== strpos( $page, 'post.php' ) ) {
204
			$post = get_post( $_GET['post'] );
205
			if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) {
206
				return true;
207
			}
208
		}
209
210
		if ( false !== strpos( $page, 'revision.php' ) ) {
211
			$post   = get_post( $_GET['revision'] );
@@ 210-216 (lines=7) @@
207
			}
208
		}
209
210
		if ( false !== strpos( $page, 'revision.php' ) ) {
211
			$post   = get_post( $_GET['revision'] );
212
			$parent = get_post( $post->post_parent );
213
			if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) {
214
				return true;
215
			}
216
		}
217
218
		return false;
219
		// phpcs:enable