Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 525-527 (lines=3) @@
522
				return new WP_Error( 'unauthorized', 'User cannot edit taxonomy', 403 );
523
			break;
524
		case 'display' :
525
			if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) {
526
				return new WP_Error( 'unauthorized', 'User cannot view taxonomy', 403 );
527
			}
528
			break;
529
		default :
530
			return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 );

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

@@ 1534-1536 (lines=3) @@
1531
				}
1532
				break;
1533
			case 'display':
1534
				if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) {
1535
					return new WP_Error( 'unauthorized', 'User cannot view taxonomy', 403 );
1536
				}
1537
				break;
1538
			default:
1539
				return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 );