Code Duplication    Length = 2-2 lines in 6 locations

classes/PodsUI.php 6 locations

@@ 2944-2945 (lines=2) @@
2941
												$filter_field['options']['default_value']                          = '';
2942
												$filter_field['options'][ $filter_field['type'] . '_allow_empty' ] = 1;
2943
2944
												if ( ! empty( $start ) && ! in_array( $start, array( '0000-00-00', '0000-00-00 00:00:00', '00:00:00' ) ) ) {
2945
													$start = PodsForm::field_method( $filter_field['type'], 'convert_date', $start, 'n/j/Y' );}
2946
2947
												if ( ! empty( $end ) && ! in_array( $end, array( '0000-00-00', '0000-00-00 00:00:00', '00:00:00' ) ) ) {
2948
													$end = PodsForm::field_method( $filter_field['type'], 'convert_date', $end, 'n/j/Y' );}
@@ 2947-2948 (lines=2) @@
2944
												if ( ! empty( $start ) && ! in_array( $start, array( '0000-00-00', '0000-00-00 00:00:00', '00:00:00' ) ) ) {
2945
													$start = PodsForm::field_method( $filter_field['type'], 'convert_date', $start, 'n/j/Y' );}
2946
2947
												if ( ! empty( $end ) && ! in_array( $end, array( '0000-00-00', '0000-00-00 00:00:00', '00:00:00' ) ) ) {
2948
													$end = PodsForm::field_method( $filter_field['type'], 'convert_date', $end, 'n/j/Y' );}
2949
										?>
2950
											<label for="pods-form-ui-filter-<?php echo esc_attr( $filter ); ?>_start">
2951
							<?php echo esc_html( $filter_field['label'] ); ?>
@@ 3352-3353 (lines=2) @@
3349
								$start = pods_var_raw( 'filter_' . $filter . '_start', 'get', '', null, true );
3350
								$end   = pods_var_raw( 'filter_' . $filter . '_end', 'get', '', null, true );
3351
3352
								if ( ! empty( $start ) && ! in_array(
3353
									$start, array(
3354
										'0000-00-00',
3355
										'0000-00-00 00:00:00',
3356
										'00:00:00',
@@ 3362-3363 (lines=2) @@
3359
									$start = PodsForm::field_method( $filter_field['type'], 'convert_date', $start, 'n/j/Y' );
3360
								}
3361
3362
								if ( ! empty( $end ) && ! in_array(
3363
									$end, array(
3364
										'0000-00-00',
3365
										'0000-00-00 00:00:00',
3366
										'00:00:00',
@@ 3505-3506 (lines=2) @@
3502
								$filter_field['options']['default_value']                          = '';
3503
								$filter_field['options'][ $filter_field['type'] . '_allow_empty' ] = 1;
3504
3505
								if ( ! empty( $start ) && ! in_array(
3506
									$start, array(
3507
										'0000-00-00',
3508
										'0000-00-00 00:00:00',
3509
										'00:00:00',
@@ 3515-3516 (lines=2) @@
3512
									$start = PodsForm::field_method( $filter_field['type'], 'convert_date', $start, 'n/j/Y' );
3513
								}
3514
3515
								if ( ! empty( $end ) && ! in_array(
3516
									$end, array(
3517
										'0000-00-00',
3518
										'0000-00-00 00:00:00',
3519
										'00:00:00',