Code Duplication    Length = 3-3 lines in 2 locations

json-endpoints/class.wpcom-json-api-post-endpoint.php 1 location

@@ 200-202 (lines=3) @@
197
			case 'site_ID' :
198
				$response[$key] = (int) $this->api->get_blog_id_for_output();
199
				break;
200
			case 'author' :
201
				$response[$key] = (object) $this->get_author( $post, 'edit' === $context && $capabilities['edit_post'] );
202
				break;
203
			case 'date' :
204
				$response[$key] = (string) $this->format_date( $post->post_date_gmt, $post->post_date );
205
				break;

json-endpoints/class.wpcom-json-api-post-v1-1-endpoint.php 1 location

@@ 184-186 (lines=3) @@
181
			case 'site_ID' :
182
				$response[$key] = (int) $this->api->get_blog_id_for_output();
183
				break;
184
			case 'author' :
185
				$response[$key] = (object) $this->get_author( $post, 'edit' === $context && $capabilities['edit_post'] );
186
				break;
187
			case 'date' :
188
				$response[$key] = (string) $this->format_date( $post->post_date_gmt, $post->post_date );
189
				break;