Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1210-1211 (lines=2) @@
1207
                    $attributes[ 'filter_label' ] = $attributes[ 'label' ];
1208
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'filter_default' ] ) || !in_array( $field, $this->filters ) )
1209
                    $attributes[ 'filter_default' ] = false;
1210
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !in_array( $field, $this->filters ) )
1211
                    $attributes[ 'date_ongoing' ] = false;
1212
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !isset( $attributes[ 'date_ongoing_default' ] ) || !in_array( $field, $this->filters ) )
1213
                    $attributes[ 'date_ongoing_default' ] = false;
1214
                if ( !isset( $attributes[ 'export' ] ) )
@@ 1212-1213 (lines=2) @@
1209
                    $attributes[ 'filter_default' ] = false;
1210
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !in_array( $field, $this->filters ) )
1211
                    $attributes[ 'date_ongoing' ] = false;
1212
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !isset( $attributes[ 'date_ongoing_default' ] ) || !in_array( $field, $this->filters ) )
1213
                    $attributes[ 'date_ongoing_default' ] = false;
1214
                if ( !isset( $attributes[ 'export' ] ) )
1215
                    $attributes[ 'export' ] = true;
1216
                if ( !isset( $attributes[ 'group_related' ] ) )