Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 195-199 (lines=5) @@
192
	 */
193
	static function get_date_filter_type_name( $type, $is_updated = false ) {
194
		switch ( $type ) {
195
			case 'year':
196
				$string = ( $is_updated )
197
					? esc_html_x( 'Year Updated', 'label for filtering posts', 'jetpack' )
198
					: esc_html_x( 'Year', 'label for filtering posts', 'jetpack' );
199
				break;
200
			case 'month':
201
			default:
202
				$string = ( $is_updated )
@@ 201-205 (lines=5) @@
198
					: esc_html_x( 'Year', 'label for filtering posts', 'jetpack' );
199
				break;
200
			case 'month':
201
			default:
202
				$string = ( $is_updated )
203
					? esc_html_x( 'Month Updated', 'label for filtering posts', 'jetpack' )
204
					: esc_html_x( 'Month', 'label for filtering posts', 'jetpack' );
205
				break;
206
		}
207
208
		return $string;