Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 675-677 (lines=3) @@
672
			}
673
		}
674
675
		if ( $media_item->post_parent > 0 ) {
676
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->get_id(), $media_item->post_parent );
677
		}
678
679
		return (object) $response;
680
	}

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

@@ 1506-1508 (lines=3) @@
1503
			}
1504
		}
1505
1506
		if ( $media_item->post_parent > 0 ) {
1507
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent );
1508
		}
1509
1510
		return (object) $response;
1511
	}