Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/sal/class.json-api-post-base.php 1 location

@@ 680-682 (lines=3) @@
677
			}
678
		}
679
680
		if ( $media_item->post_parent > 0 ) {
681
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->get_id(), $media_item->post_parent );
682
		}
683
684
		return (object) $response;
685
	}

projects/plugins/jetpack/class.json-api-endpoints.php 1 location

@@ 1494-1496 (lines=3) @@
1491
			}
1492
		}
1493
1494
		if ( $media_item->post_parent > 0 ) {
1495
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent );
1496
		}
1497
1498
		return (object) $response;
1499
	}