Code Duplication    Length = 10-10 lines in 2 locations

_inc/lib/core-api/wpcom-fields/attachment-fields-videopress.php 1 location

@@ 46-55 (lines=10) @@
43
	/**
44
	 * Defines data structure and what elements are visible in which contexts
45
	 */
46
	public function get_schema() {
47
		return array(
48
			'$schema'     => 'http://json-schema.org/draft-04/schema#',
49
			'title'       => $this->field_name,
50
			'type'        => 'string',
51
			'context'     => array( 'view', 'edit' ),
52
			'readonly'    => true,
53
			'description' => __( 'Unique VideoPress ID', 'jetpack' ),
54
		);
55
	}
56
57
	/**
58
	 * Getter: Retrieve current VideoPress data for a given attachment.

_inc/lib/core-api/wpcom-fields/class-wpcom-rest-api-v2-attachment-videopress-data.php 1 location

@@ 46-55 (lines=10) @@
43
	/**
44
	 * Defines data structure and what elements are visible in which contexts
45
	 */
46
	public function get_schema() {
47
		return array(
48
			'$schema'     => 'http://json-schema.org/draft-04/schema#',
49
			'title'       => $this->field_name,
50
			'type'        => 'object',
51
			'context'     => array( 'view', 'edit' ),
52
			'readonly'    => true,
53
			'description' => __( 'VideoPress Data', 'jetpack' ),
54
		);
55
	}
56
57
	/**
58
	 * Getter: Retrieve current VideoPress data for a given attachment.