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

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