Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack-xmlrpc-server.php 2 locations

@@ 347-354 (lines=8) @@
344
		return $post;
345
	}
346
347
	function get_posts( $args ) {
348
		list( $post_ids ) = $args;
349
		$post_ids = array_map( 'intval', (array) $post_ids );
350
		$jp = Jetpack::init();
351
		$sync_data = $jp->sync->get_content( array( 'posts' => $post_ids ) );
352
353
		return $sync_data;
354
	}
355
356
	function get_comment( $id ) {
357
		if ( !$id = (int) $id ) {
@@ 375-382 (lines=8) @@
372
		return $comment;
373
	}
374
375
	function get_comments( $args ) {
376
		list( $comment_ids ) = $args;
377
		$comment_ids = array_map( 'intval', (array) $comment_ids );
378
		$jp = Jetpack::init();
379
		$sync_data = $jp->sync->get_content( array( 'comments' => $comment_ids ) );
380
381
		return $sync_data;
382
	}
383
384
	function update_attachment_parent( $args ) {
385
		$attachment_id = (int) $args[0];