Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 1522-1524 (lines=3) @@
1519
				}
1520
				break;
1521
			case 'display':
1522
				if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) {
1523
					return new WP_Error( 'unauthorized', 'User cannot view taxonomy', 403 );
1524
				}
1525
				break;
1526
			default:
1527
				return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 );