Code Duplication    Length = 10-10 lines in 2 locations

modules/search/class.jetpack-search-helpers.php 2 locations

@@ 89-98 (lines=10) @@
86
						case 'date_histogram':
87
							switch ( $widget_filter['field'] ) {
88
								case 'post_date':
89
								case 'post_date_gmt':
90
									switch ( $widget_filter['interval'] ) {
91
										case 'month':
92
											$widget_filter['name'] = _x( 'Month', 'label for filtering posts', 'jetpack' );
93
											break;
94
										case 'year':
95
											$widget_filter['name'] = _x( 'Year', 'label for filtering posts', 'jetpack' );
96
											break;
97
									}
98
									break;
99
								case 'post_modified':
100
								case 'post_modified_gmt':
101
									switch ( $widget_filter['interval'] ) {
@@ 100-109 (lines=10) @@
97
									}
98
									break;
99
								case 'post_modified':
100
								case 'post_modified_gmt':
101
									switch ( $widget_filter['interval'] ) {
102
										case 'month':
103
											$widget_filter['name'] = _x( 'Month Updated', 'label for filtering posts', 'jetpack' );
104
											break;
105
										case 'year':
106
											$widget_filter['name'] = _x( 'Year Updated', 'label for filtering posts', 'jetpack' );
107
											break;
108
									}
109
									break;
110
							}
111
							break;
112
						case 'taxonomy':