Code Duplication    Length = 8-8 lines in 2 locations

core/Updater/Association_Value_Parser.php 2 locations

@@ 40-47 (lines=8) @@
37
					return 'comment:comment:' . $item['id'];
38
					break;
39
40
				case 'post':
41
					
42
					if ( ! self::is_key_present( 'post_type', $item ) ) {
43
						self::throw_exception( __( 'Please provide post_type', 'crb' ) );
44
					}
45
					
46
					return 'post:' . $item['post_type'] . ':' . $item['id'];
47
					break;
48
49
				case 'term':
50
					
@@ 49-56 (lines=8) @@
46
					return 'post:' . $item['post_type'] . ':' . $item['id'];
47
					break;
48
49
				case 'term':
50
					
51
					if ( ! self::is_key_present( 'taxonomy', $item ) ) {
52
						self::throw_exception( __( 'Please provide taxonomy', 'crb' ) );
53
					}
54
55
					return 'term:' . $item['taxonomy'] . ':' . $item['id'];
56
					break;
57
58
				default:
59
					self::throw_exception( __( 'Unknown type used!', 'crb' ) );