Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 98-107 (lines=10) @@
95
			case 'date_histogram':
96
				switch ( $widget_filter['field'] ) {
97
					case 'post_date':
98
					case 'post_date_gmt':
99
						switch ( $widget_filter['interval'] ) {
100
							case 'month':
101
								$name = _x( 'Month', 'label for filtering posts', 'jetpack' );
102
								break;
103
							case 'year':
104
								$name = _x( 'Year', 'label for filtering posts', 'jetpack' );
105
								break;
106
						}
107
						break;
108
					case 'post_modified':
109
					case 'post_modified_gmt':
110
						switch ( $widget_filter['interval'] ) {
@@ 109-118 (lines=10) @@
106
						}
107
						break;
108
					case 'post_modified':
109
					case 'post_modified_gmt':
110
						switch ( $widget_filter['interval'] ) {
111
							case 'month':
112
								$name = _x( 'Month Updated', 'label for filtering posts', 'jetpack' );
113
								break;
114
							case 'year':
115
								$name = _x( 'Year Updated', 'label for filtering posts', 'jetpack' );
116
								break;
117
						}
118
						break;
119
				}
120
				break;
121
			case 'taxonomy':