Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 356-361 (lines=6) @@
353
					}
354
				}
355
				break;
356
			case 'format' :
357
				$response[$key] = (string) get_post_format( $post->ID );
358
				if ( !$response[$key] ) {
359
					$response[$key] = 'standard';
360
				}
361
				break;
362
			case 'geo' : // (object|false)
363
				if ( !$geo ) {
364
					$response[$key] = false;

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

@@ 339-344 (lines=6) @@
336
					}
337
				}
338
				break;
339
			case 'format' :
340
				$response[$key] = (string) get_post_format( $post->ID );
341
				if ( !$response[$key] ) {
342
					$response[$key] = 'standard';
343
				}
344
				break;
345
			case 'geo' : // (object|false)
346
				if ( !$geo ) {
347
					$response[$key] = false;