Code Duplication    Length = 6-7 lines in 2 locations

modules/class.jetpack-calypsoify.php 2 locations

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