Code Duplication    Length = 7-7 lines in 2 locations

packages/sync/legacy/class.jetpack-sync-module-comments.php 1 location

@@ 119-125 (lines=7) @@
116
		return (int) ceil( $count / self::ARRAY_CHUNK_SIZE );
117
	}
118
119
	private function get_where_sql( $config ) {
120
		if ( is_array( $config ) ) {
121
			return 'comment_ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')';
122
		}
123
124
		return null;
125
	}
126
127
	public function get_full_sync_actions() {
128
		return array( 'jetpack_full_sync_comments' );

packages/sync/src/modules/Terms.php 1 location

@@ 36-42 (lines=7) @@
33
		return $this->enqueue_all_ids_as_action( 'jetpack_full_sync_terms', $wpdb->term_taxonomy, 'term_taxonomy_id', $this->get_where_sql( $config ), $max_items_to_enqueue, $state );
34
	}
35
36
	private function get_where_sql( $config ) {
37
		if ( is_array( $config ) ) {
38
			return 'term_taxonomy_id IN (' . implode( ',', array_map( 'intval', $config ) ) . ')';
39
		}
40
41
		return '';
42
	}
43
44
	public function estimate_full_sync_actions( $config ) {
45
		global $wpdb;